aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcap-linux.c')
-rw-r--r--pcap-linux.c2
1 files changed, 1 insertions, 1 deletions
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) {