Skip to content
Commit 53d421dd authored by Samuel Thibault's avatar Samuel Thibault Committed by Michael Roth
Browse files

slirp: fix clearing ifq_so from pending packets



The if_fastq and if_batchq contain not only packets, but queues of packets
for the same socket. When sofree frees a socket, it thus has to clear ifq_so
from all the packets from the queues, not only the first.

Signed-off-by: default avatarSamuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
Cc: qemu-stable@nongnu.org
Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
(cherry picked from commit 1201d308)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent 1ab5eb4e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment