]> The Tcpdump Group git mirrors - libpcap/commit
Check for malloc failing in pcap_lib_version().
authorGuy Harris <[email protected]>
Sun, 14 Apr 2013 18:22:08 +0000 (11:22 -0700)
committerGuy Harris <[email protected]>
Sun, 14 Apr 2013 18:22:08 +0000 (11:22 -0700)
commit25fb6f2aa22e7fc969b550bbcde003f292b984dc
tree8bc53ab93017f8f7234b7b243b27c36e9a990fff
parentc8e2d55b7c75056708ecf9d76b7c0353dc54bf39
Check for malloc failing in pcap_lib_version().

Yes, this means that on Windows and DOS you need to check whether
pcap_lib_version() returns NULL; otherwise, this just trades a crash in
pcap for a crash in the code calling it.
pcap.c