--- embedaddon/libnet/src/libnet_cq.c 2013/07/22 11:54:42 1.1.1.2 +++ embedaddon/libnet/src/libnet_cq.c 2021/03/16 23:47:28 1.1.1.3 @@ -1,5 +1,5 @@ /* - * $Id: libnet_cq.c,v 1.1.1.2 2013/07/22 11:54:42 misho Exp $ + * $Id: libnet_cq.c,v 1.1.1.3 2021/03/16 23:47:28 misho Exp $ * * libnet * libnet_cq.c - context queue management routines @@ -344,6 +344,8 @@ libnet_cq_destroy() libnet_destroy(tmp->context); free(tmp); } + l_cq = NULL; + memset(&l_cqd, 0, sizeof(l_cqd)); } libnet_t *