diff options
author | Baptiste PEUGNEZ <baptiste.peugnez@cea.fr> | 2015-01-27 12:30:20 +0100 |
---|---|---|
committer | Baptiste PEUGNEZ <baptiste.peugnez@cea.fr> | 2015-01-27 12:30:20 +0100 |
commit | c4ddd6282b6614f98cc0c4a0ad09a13e5ad4ac7f (patch) | |
tree | 98f07d347d5961777151db4a89dc1e09952d7a32 /pcap-linux.c | |
parent | 1720815c4c0c08a3b8e5d27b9f5ca5d850166e60 (diff) |
pcap-linux.c: Initialize variable len
The variable "len" contains the buffer size "& bpf_extensions" but len is not initialized.
Diffstat (limited to 'pcap-linux.c')
-rw-r--r-- | pcap-linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-linux.c b/pcap-linux.c index 91cf0abc..93ae373e 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -3017,7 +3017,7 @@ activate_new(pcap_t *handle) struct packet_mreq mr; #ifdef SO_BPF_EXTENSIONS int bpf_extensions; - socklen_t len; + socklen_t len = sizeof(bpf_extensions); #endif /* |