tcpdump mailing list archives

segfault in libpcap


From: Florent.Drouin () alcatel-lucent fr
Date: Tue, 30 Jan 2007 11:28:16 +0100

      Hello,


I have a systematical crash at tcpdump startup, when I am using libpcap
(2007-01-30)
I just add a test to check if the USB bus directory is present in
pcap-usb-linux.c, and it
seems to solve the problem.

<<
 cat pcap-usb-linux.c.diff
--- pcap-usb-linux.c    2007-01-30 10:54:42.000000000 +0100
+++ pcap-usb-linux.c.ori        2007-01-30 10:45:52.000000000 +0100
@@ -149,7 +149,6 @@

        /* scan profs usb bus directorys */
        dir = opendir(USB_BUS_DIR);
-       if (!dir) return 0;
        while ((ret == 0) && ((data = readdir(dir)) != 0)) {
                int n;
                char* name = data->d_name;


Best regards
Florent


-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: