summaryrefslogtreecommitdiff
path: root/usr.bin/logger/logger.1
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-08-14 08:07:28 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-08-14 08:07:28 +0000
commit1f8a257c22a2b0011e2ab0767fa1d7f9a6f3ad6d (patch)
tree80f1bc75232d6abb64a230f53929aa73a31d8161 /usr.bin/logger/logger.1
parentf11fd629ca75013925acad498fcc8574eee31bf5 (diff)
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 'usr.bin/logger/logger.1')
0 files changed, 0 insertions, 0 deletions