summaryrefslogtreecommitdiff
path: root/bpf.c
diff options
context:
space:
mode:
Diffstat (limited to 'bpf.c')
-rw-r--r--bpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bpf.c b/bpf.c
index 6239af9..25cf25d 100644
--- a/bpf.c
+++ b/bpf.c
@@ -755,7 +755,7 @@ void bpf_parse_rules(char *rulefile, struct sock_fprog *bpf, uint32_t link_type)
panic("BPF syntax error!\n");
bpf->len++;
- bpf->filter = xrealloc(bpf->filter, 1,
+ bpf->filter = xrealloc(bpf->filter,
bpf->len * sizeof(sf_single));
fmemcpy(&bpf->filter[bpf->len - 1], &sf_single,