diff options
author | 2019-09-10 10:59:43 +0300 | |
---|---|---|
committer | 2019-09-25 08:15:44 -0500 | |
commit | da5e1169183ca6eb6fb470dc32ed1bfc24d1d406 (patch) | |
tree | db51ff2e33f0446f3db5758999e16f1c49477451 /scripts/qapi/source.py | |
parent | tests: Use iothreads during iotest 223 (diff) | |
download | 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 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions