]> The Tcpdump Group git mirrors - libpcap/commit
Don't drive on if fopen() or opendir() returns NULL.
authorGuy Harris <[email protected]>
Thu, 1 Dec 2011 06:45:03 +0000 (22:45 -0800)
committerGuy Harris <[email protected]>
Thu, 1 Dec 2011 06:45:03 +0000 (22:45 -0800)
commitbd93f801f1232508fcba3f8c2c5fe4f4372d3a49
treeb41c14eadcf56e7002b2032d5d80f56b1aeb9326
parent3127856ef665d3f318030c088d91514555e2d842
Don't drive on if fopen() or opendir() returns NULL.

Always either return 0, for "I can't scan that sysfs/procfs file because
it doesn't exist", if the error is ENOENT, and return -1 with an error
message for all other errors.

Thanks to Michal Sekletar for finding that.
pcap-linux.c