From 5d5b73ede97e33724d296391c863c5678e3f21e2 Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Wed, 29 Jan 2014 21:33:03 -0800 Subject: Reset global cq state after destroying it --- libnet/src/libnet_cq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libnet/src/libnet_cq.c b/libnet/src/libnet_cq.c index 6ff5266..ec60a01 100644 --- a/libnet/src/libnet_cq.c +++ b/libnet/src/libnet_cq.c @@ -337,6 +337,8 @@ libnet_cq_destroy() libnet_destroy(tmp->context); free(tmp); } + l_cq = NULL; + memset(&l_cqd, 0, sizeof(l_cqd)); } libnet_t * -- cgit v1.2.1