summaryrefslogtreecommitdiffstats
path: root/scripts/modules
diff options
context:
space:
mode:
authorPeter Maydell2017-07-09 19:54:22 +0200
committerSamuel Thibault2017-07-15 14:28:25 +0200
commit12dccfe4f57ead8166567ec8a60d2ce91e266f04 (patch)
tree8b6d6ca19237f9d1e1217e4f15a8200257a2b68a /scripts/modules
parentslirp: use DIV_ROUND_UP (diff)
downloadqemu-12dccfe4f57ead8166567ec8a60d2ce91e266f04.tar.gz
qemu-12dccfe4f57ead8166567ec8a60d2ce91e266f04.tar.xz
qemu-12dccfe4f57ead8166567ec8a60d2ce91e266f04.zip
slirp: fork_exec(): Don't close() a negative number in fork_exec()
In a fork_exec() error path we try to closesocket(s) when s might be a negative number because the thing that failed was the qemu_socket() call. Add a guard so we don't do this. (Spotted by Coverity: CID 1005727 issue 1 of 2.) Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'scripts/modules')
0 files changed, 0 insertions, 0 deletions