summaryrefslogtreecommitdiff
path: root/bpf_comp.c
diff options
context:
space:
mode:
Diffstat (limited to 'bpf_comp.c')
-rw-r--r--bpf_comp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bpf_comp.c b/bpf_comp.c
index 8298289..3434daf 100644
--- a/bpf_comp.c
+++ b/bpf_comp.c
@@ -24,7 +24,7 @@ void bpf_try_compile(const char *rulefile, struct sock_fprog *bpf, uint32_t link
panic("Cannot compile filter %s\n", rulefile);
bpf->len = _bpf.bf_len;
- bpf->filter = xrealloc(bpf->filter, 1, bpf->len * sizeof(*out));
+ bpf->filter = xrealloc(bpf->filter, bpf->len * sizeof(*out));
for (i = 0, ins = _bpf.bf_insns, out = bpf->filter; i < bpf->len;
++i, ++ins, ++out) {