freebsd-ports/net/libnet/files/patch-src-libnet_cq.c
Sunpoet Po-Chuan Hsieh 8ed03fb8db - Backport upstream fixes (from 1.2 to 1.1.6)
- Bump PORTREVISION for package change
- While I'm here, rename patch-libnet.h.in to patch-include-libnet.h.in

PR:		196818
Submitted by:	Kevin Hung <khung@nullaxiom.com> (via email)
Obtained from:	18cbe497dd
		2e724b2f5c
		408fa2266a
		c9390bf8f3
2015-01-18 10:36:16 +00:00

15 lines
424 B
C

- 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 *