diff options
Diffstat (limited to 'net/libnet/files/patch-src-libnet_cq.c')
-rw-r--r-- | net/libnet/files/patch-src-libnet_cq.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/libnet/files/patch-src-libnet_cq.c b/net/libnet/files/patch-src-libnet_cq.c new file mode 100644 index 000000000000..e0177d8fefd2 --- /dev/null +++ b/net/libnet/files/patch-src-libnet_cq.c @@ -0,0 +1,15 @@ +- Reset global cq state after destroying it. + +Obtained from: https://github.com/sam-github/libnet/commit/c9390bf8f3379c280ba8ceec67fbd8e908675d96 + +--- src/libnet_cq.c.orig 2012-03-20 00:59:50.000000000 +0800 ++++ src/libnet_cq.c 2015-01-18 03:09:08.170403000 +0800 +@@ -344,6 +344,8 @@ + libnet_destroy(tmp->context); + free(tmp); + } ++ l_cq = NULL; ++ memset(&l_cqd, 0, sizeof(l_cqd)); + } + + libnet_t * |