bpf: Zero out socket filter in bpf_parse_rules()
commitf2154ee8285abee46028afff19e6bf2cb4794efc
authorTobias Klauser <tklauser@distanz.ch>
Mon, 12 May 2014 07:09:26 +0000 (12 09:09 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Mon, 12 May 2014 07:12:08 +0000 (12 09:12 +0200)
treeadf381482dc3682c8fa5b7ee8764ad5b71307826
parent9a40de458b3884d9f526172110392501f075bd87
bpf: Zero out socket filter in bpf_parse_rules()

Instead of memsetting the struct sock_filter every time before we call
bpf_parse_rules(), do it there directly.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
bpf.c
netsniff-ng.c