From cdcc9da0d8fd1d388ca991c8ea50d0d34f8daece Mon Sep 17 00:00:00 2001 From: david Date: Thu, 22 Mar 2012 00:32:31 +0000 Subject: [PATCH] Fix a bug in the last commit: need another level of indirection on packet pointer. --- libnetutil/netutil.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnetutil/netutil.cc b/libnetutil/netutil.cc index 13ebb89fe..92cf4eb80 100644 --- a/libnetutil/netutil.cc +++ b/libnetutil/netutil.cc @@ -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;