diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-11-30 22:45:03 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-11-30 22:45:03 -0800 |
commit | bd93f801f1232508fcba3f8c2c5fe4f4372d3a49 (patch) | |
tree | b41c14eadcf56e7002b2032d5d80f56b1aeb9326 /pcap-bt-linux.c | |
parent | 3127856ef665d3f318030c088d91514555e2d842 (diff) |
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.
Diffstat (limited to 'pcap-bt-linux.c')
0 files changed, 0 insertions, 0 deletions