when draining a flowset free the entire chain, not just one packet.

This commit is contained in:
Luigi Rizzo 2009-12-10 18:34:07 +00:00
parent 28336d6080
commit 89717f91ef

View File

@ -1990,7 +1990,7 @@ dummynet_drain(void)
for (i = 0; i < HASHSIZE; i++) {
SLIST_FOREACH(pipe, &pipehash[i], next) {
purge_flow_set(&(pipe->fs), 0);
dn_free_pkt(pipe->head);
dn_free_pkts(pipe->head);
pipe->head = pipe->tail = NULL;
}
}