diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2017-02-04 23:08:33 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2017-02-26 15:38:38 +0100 |
commit | 4577b09a278fe9134ecb9192c2ae2ed67a0d0aa7 (patch) | |
tree | c803fbec793c9c5949b8f17fe1f29d4761070cf7 /docs | |
parent | 6528a4c1f20c1ba5a22ab84bec6788a574ac04c8 (diff) | |
download | qemu-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 'docs')
0 files changed, 0 insertions, 0 deletions