diff options
author | tobias <> | 2015-03-26 21:22:50 +0000 |
---|---|---|
committer | tobias <> | 2015-03-26 21:22:50 +0000 |
commit | 1528a0d1b9587583b1d71e5c756a609e4c5bc233 (patch) | |
tree | 4504310d787fa0dd30c300fd3739d99cdb9462bf /src/lib/libtls/tls_server.c | |
parent | bf48d80df41194bb20ab076d4113a86e2294dcc9 (diff) | |
download | openbsd-1528a0d1b9587583b1d71e5c756a609e4c5bc233.tar.gz openbsd-1528a0d1b9587583b1d71e5c756a609e4c5bc233.tar.bz2 openbsd-1528a0d1b9587583b1d71e5c756a609e4c5bc233.zip |
The code in socks.c writes multiple times in a row to a socket. If the
socket becomes invalid between these calls (e.g. connection closed), write
will throw SIGPIPE. With this patch, SIGPIPE is ignored so we can
handle write's -1 return value (errno will be EPIPE). Ultimately, it leads
to program exit, too -- but with nicer error message. :)
with input by and ok djm
Diffstat (limited to 'src/lib/libtls/tls_server.c')
0 files changed, 0 insertions, 0 deletions