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

slirp: Fix access to freed memory



if_start() goes through the slirp->if_fastq and slirp->if_batchq
list of pending messages, and accesses ifm->ifq_so->so_nqueued of its
elements if ifm->ifq_so != NULL.  When freeing a socket, we thus need
to make sure that any pending message for this socket does not refer
to the socket any more.

Signed-off-by: default avatarSamuel Thibault <samuel.thibault@ens-lyon.org>
Tested-by: default avatarBrian Candler <b.candler@pobox.com>
Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit ea64d5f0)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent 92230a59
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