aboutsummaryrefslogtreecommitdiff
path: root/translate-common.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2017-02-04 23:08:33 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2017-02-26 15:38:38 +0100
commit4577b09a278fe9134ecb9192c2ae2ed67a0d0aa7 (patch)
treec803fbec793c9c5949b8f17fe1f29d4761070cf7 /translate-common.c
parent6528a4c1f20c1ba5a22ab84bec6788a574ac04c8 (diff)
downloadqemu-4577b09a278fe9134ecb9192c2ae2ed67a0d0aa7.zip
qemu-4577b09a278fe9134ecb9192c2ae2ed67a0d0aa7.tar.gz
qemu-4577b09a278fe9134ecb9192c2ae2ed67a0d0aa7.tar.bz2
slirp: Check qemu_socket() return value in udp_listen()
Check the return value from qemu_socket() rather than trying to pass it to bind() as an fd argument even if it's negative. This wouldn't have caused any negative consequences, because it won't be a valid fd number and the bind call will fail; but Coverity complains (CID 1005723). Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'translate-common.c')
0 files changed, 0 insertions, 0 deletions