From 26384d5fc75257d06cdd4b0e59f824eb01b769ff Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 12 Oct 2009 17:06:11 -0700 Subject: Fix typo^Wbraino. --- pcap-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pcap-linux.c') diff --git a/pcap-linux.c b/pcap-linux.c index 48cad3a..9703040 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -2982,7 +2982,7 @@ pcap_read_linux_mmap(pcap_t *handle, int max_packets, pcap_handler callback, * * XXX - make the socket non-blocking? */ - if (recv(handle->fd, c, sizeof c, + if (recv(handle->fd, &c, sizeof c, MSG_PEEK) != -1) continue; /* what, no error? */ if (errno == ENETDOWN) { -- cgit v1.2.3