summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Roberts <sam@strongloop.com>2014-01-29 21:33:03 -0800
committerSam Roberts <sam@strongloop.com>2014-01-29 21:33:03 -0800
commit5d5b73ede97e33724d296391c863c5678e3f21e2 (patch)
tree6e79eb0d332088e28a83d70708d944012b279171
parentbab878a5892b66de85857f0e4044983d235718c9 (diff)
downloadlibnet-fix-cq_destroy.tar.gz
Reset global cq state after destroying itfix-cq_destroy
-rw-r--r--libnet/src/libnet_cq.c2
1 files changed, 2 insertions, 0 deletions
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 *