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:Samuel Thibault <samuel.thibault@ens-lyon.org> Tested-by:
Brian Candler <b.candler@pobox.com> Reviewed-by:
Stefan Hajnoczi <stefanha@redhat.com> (cherry picked from commit ea64d5f0) Signed-off-by:
Michael Roth <mdroth@linux.vnet.ibm.com>
Loading
Please register or sign in to comment