aboutgitcodebugslistschat
path: root/test/lib/setup
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-09-19 22:04:16 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-09-22 16:54:01 +0200
commitd30bde3181a3d3aac406a15fd6c905612c8e416c (patch)
tree889edef91b3cbb5fa0ae63f0d38380a2a6255d40 /test/lib/setup
parenta39398e840cfc7b8608cab10e30efeab3188db2e (diff)
downloadpasst-d30bde3181a3d3aac406a15fd6c905612c8e416c.tar
passt-d30bde3181a3d3aac406a15fd6c905612c8e416c.tar.gz
passt-d30bde3181a3d3aac406a15fd6c905612c8e416c.tar.bz2
passt-d30bde3181a3d3aac406a15fd6c905612c8e416c.tar.lz
passt-d30bde3181a3d3aac406a15fd6c905612c8e416c.tar.xz
passt-d30bde3181a3d3aac406a15fd6c905612c8e416c.tar.zst
passt-d30bde3181a3d3aac406a15fd6c905612c8e416c.zip
tap: Check return value of accept4() before calling getsockopt()
Reported by Coverity (CWE-119): Negative value used as argument to a function expecting a positive value (for example, size of buffer or allocation) and harmless, because getsockopt() would return -EBADF if the socket is -1, so we wouldn't print anything. Check if accept4() returns a valid socket before calling getsockopt() on it. Signed-off-by: Stefano Brivio <sbrivio@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'test/lib/setup')
0 files changed, 0 insertions, 0 deletions