1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-17 13:09:02 +00:00

Fix a bug in the last commit: need another level of indirection on packet pointer.

This commit is contained in:
david
2012-03-22 00:32:31 +00:00
parent 5008078dac
commit cdcc9da0d8

View File

@@ -4016,7 +4016,7 @@ static int read_reply_pcap(pcap_t *pd, long to_usec,
assert(rc == 0); assert(rc == 0);
} }
if (p == NULL) { if (*p == NULL) {
/* Nonblocking pcap_next didn't get anything. */ /* Nonblocking pcap_next didn't get anything. */
if (pcap_select(pd, to_usec) == 0) if (pcap_select(pd, to_usec) == 0)
timedout = 1; timedout = 1;