Skip to content

Commit

Permalink
Reset global cq state after destroying it
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-github committed Feb 6, 2014
1 parent 91e0458 commit c9390bf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libnet/src/libnet_cq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down

0 comments on commit c9390bf

Please sign in to comment.