Fix typo^Wbraino.
This commit is contained in:
parent
bf7491046a
commit
26384d5fc7
|
@ -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) {
|
||||
|
|
Reference in New Issue