From 149c67335a6a702c07623075634262e150954edd Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 17 Dec 2021 19:23:46 +0100 Subject: [PATCH] Added a sanity check to the PCap code. --- src/network/net_pcap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/network/net_pcap.c b/src/network/net_pcap.c index ccdbb3c10..7008d1442 100644 --- a/src/network/net_pcap.c +++ b/src/network/net_pcap.c @@ -226,7 +226,8 @@ poll_thread(void *arg) thread_destroy_event(evt); pcap_log("PCAP: polling stopped.\n"); - thread_set_event(poll_state); + if (poll_state != NULL) + thread_set_event(poll_state); }