diff --git a/pcap-linux.c b/pcap-linux.c index f8b3f10..463e5d4 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -2178,6 +2178,7 @@ pcap_setfilter_linux_common(pcap_t *handle, struct bpf_program *filter, struct sock_fprog fcode; int can_filter_in_kernel; int err = 0; + memset(&fcode, 0, sizeof(struct sock_fprog)); #endif if (!handle)