]> The Tcpdump Group git mirrors - libpcap/commitdiff
Fix typo^Wbraino.
authorGuy Harris <[email protected]>
Tue, 13 Oct 2009 00:06:11 +0000 (17:06 -0700)
committerGuy Harris <[email protected]>
Tue, 13 Oct 2009 00:06:11 +0000 (17:06 -0700)
pcap-linux.c

index 48cad3aa6635b5bc939eee3e78193252c7f4126b..9703040f183298c3a0d04c5363d27c2528802f68 100644 (file)
@@ -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) {