From: guy Date: Wed, 5 Nov 2003 04:25:24 +0000 (+0000) Subject: From Jesper Peterson: fix a cut-and-pasteo (the Linux libpcap code calls X-Git-Tag: libpcap-0.8-bp X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/4a0eb920224369ec31295b1d37cc2db2e7fc4ce1 From Jesper Peterson: fix a cut-and-pasteo (the Linux libpcap code calls its pcap_t pointer "handle", not "p", unlike most other libpcap code). --- diff --git a/pcap-linux.c b/pcap-linux.c index 6120b67b..520ddacb 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -27,7 +27,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.97 2003-11-04 07:05:34 guy Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.98 2003-11-05 04:25:24 guy Exp $ (LBL)"; #endif /* @@ -465,13 +465,13 @@ pcap_read_packet(pcap_t *handle, pcap_handler callback, u_char *userdata) /* * Has "pcap_breakloop()" been called? */ - if (p->break_loop) { + if (handle->break_loop) { /* * Yes - clear the flag that indicates that it * has, and return -2 as an indication that we * were told to break out of the loop. */ - p->break_loop = 0; + handle->break_loop = 0; return -2; } fromlen = sizeof(from);