summaryrefslogtreecommitdiff
path: root/src/regress/lib/libssl/tlsfuzzer/tlsfuzzer.py
diff options
context:
space:
mode:
authortb <>2023-08-14 08:07:27 +0000
committertb <>2023-08-14 08:07:27 +0000
commit06482421b23129d17adff51bf24e1b27207c12d6 (patch)
tree7e89c60ea4653a514eb973f7264048ef097a4bec /src/regress/lib/libssl/tlsfuzzer/tlsfuzzer.py
parent9ed4ae0e8bb57718bff8370d5629f36660774ee7 (diff)
downloadopenbsd-06482421b23129d17adff51bf24e1b27207c12d6.tar.gz
openbsd-06482421b23129d17adff51bf24e1b27207c12d6.tar.bz2
openbsd-06482421b23129d17adff51bf24e1b27207c12d6.zip
netcat: avoid issuing syscalls on fd -1
In case a socket error condition occurs, readwrite() invalidates the corresponding fd. Later on, readwrite() may still issue a syscall on it. Avoid that by adding a couple of checks for fd == -1. Reported and fix suggested by Leah Neukirchen. Fixes https://github.com/libressl/openbsd/issues/143 "looks right" deraadt
Diffstat (limited to 'src/regress/lib/libssl/tlsfuzzer/tlsfuzzer.py')
0 files changed, 0 insertions, 0 deletions