diff options
author | Sam Roberts <sam@strongloop.com> | 2014-01-29 21:33:03 -0800 |
---|---|---|
committer | Sam Roberts <sam@strongloop.com> | 2014-01-29 21:33:03 -0800 |
commit | 5d5b73ede97e33724d296391c863c5678e3f21e2 (patch) | |
tree | 6e79eb0d332088e28a83d70708d944012b279171 | |
parent | bab878a5892b66de85857f0e4044983d235718c9 (diff) | |
download | libnet-fix-cq_destroy.tar.gz |
Reset global cq state after destroying itfix-cq_destroy
-rw-r--r-- | libnet/src/libnet_cq.c | 2 |
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 * |