Skip to content

Commit

Permalink
Fix uninitialized memory
Browse files Browse the repository at this point in the history
  • Loading branch information
cardigliano committed Sep 4, 2024
1 parent 16ef5c4 commit fb2cef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userland/lib/pfring_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ int pfring_mod_set_bpf_filter(pfring *ring, const char *filter_buffer) {
#ifdef ENABLE_BPF
pcap_t *p;
struct bpf_program filter;
struct sock_fprog fcode;
struct sock_fprog fcode = { 0 };
#ifdef SKF_AD_VLAN_TAG_PRESENT
int bpf_extensions;
socklen_t len = sizeof(bpf_extensions);
Expand Down

0 comments on commit fb2cef2

Please sign in to comment.