summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy2019-09-10 09:59:43 +0200
committerEric Blake2019-09-25 15:15:44 +0200
commitda5e1169183ca6eb6fb470dc32ed1bfc24d1d406 (patch)
treedb51ff2e33f0446f3db5758999e16f1c49477451 /include
parenttests: Use iothreads during iotest 223 (diff)
downloadqemu-da5e1169183ca6eb6fb470dc32ed1bfc24d1d406.tar.gz
qemu-da5e1169183ca6eb6fb470dc32ed1bfc24d1d406.tar.xz
qemu-da5e1169183ca6eb6fb470dc32ed1bfc24d1d406.zip
util/qemu-sockets: fix keep_alive handling in inet_connect_saddr
In "if (saddr->keep_alive) {" we may already be on error path, with invalid sock < 0. Fix it by returning error earlier. Reported-by: Coverity (CID 1405300) Fixes: aec21d31756cbd Suggested-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20190910075943.12977-1-vsementsov@virtuozzo.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions