Permalink
Browse files

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).
  • Loading branch information...
yuguy committed Nov 5, 2003
1 parent 849c3c6 commit 4a0eb920224369ec31295b1d37cc2db2e7fc4ce1
Showing with 3 additions and 3 deletions.
  1. +3 −3 pcap-linux.c
View
@@ -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);

0 comments on commit 4a0eb92

Please sign in to comment.