]> The Tcpdump Group git mirrors - libpcap/commit
Fix valgrind warning (jump on unitialized value) due to missing ioctl wrapper
authorDavid Clark <[email protected]>
Wed, 20 Mar 2013 00:06:35 +0000 (17:06 -0700)
committerMichael Richardson <[email protected]>
Sun, 14 Apr 2013 22:33:07 +0000 (18:33 -0400)
commit76b1c8f6a8255759a24983a26960d61ab03af20c
treee074c8de1deb6254cd06ef29f80d198c6e23f94e
parentc1f2dbee6d03a85beddf7afa9f0fa7ee6156421a
Fix valgrind warning (jump on unitialized value) due to missing ioctl wrapper

Valgrind doesn't have a wrapper for the SIOCETHTOOL ioctl call yet. This
is causing every program that uses libpcap and valgrind to produce some
false warnings because it thinks eval.data was never initialized. A harmless
fix is to just set eval.data to 0 instead of leaving it unitialized before
the SIOCETHTOOL ioctl call sets it.
pcap-linux.c