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);
}
if (p == NULL) {
if (*p == NULL) {
/* Nonblocking pcap_next didn't get anything. */
if (pcap_select(pd, to_usec) == 0)
timedout = 1;