tcpdump mailing list archives

Re: pcap_compile Segmentation Fault


From: Flavio Truzzi <flaviotruzzi () gmail com>
Date: Fri, 3 Jun 2011 21:30:13 -0300

The handle ins't null, if I remove the compile statement I can sniff the
packages ...

On Fri, Jun 3, 2011 at 8:32 PM, Guy Harris <guy () alum mit edu> wrote:


On Jun 3, 2011, at 4:18 PM, Flavio Truzzi wrote:

   handle = pcap_open_offline("aaaa.cap",errbuff);

You're missing a

       if (handle == NULL) {
               report whatever error is in errbuff;
               stop;
       }

there.  What happens after you add it?
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.




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


Current thread: