summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortobias <>2015-03-26 21:22:50 +0000
committertobias <>2015-03-26 21:22:50 +0000
commit651e65376c2f031d57f2fad3d9773b51f5916111 (patch)
tree4504310d787fa0dd30c300fd3739d99cdb9462bf /src/lib
parent1654c26788ef33807b3d91c7aa1da8c6a30395a1 (diff)
downloadopenbsd-651e65376c2f031d57f2fad3d9773b51f5916111.tar.gz
openbsd-651e65376c2f031d57f2fad3d9773b51f5916111.tar.bz2
openbsd-651e65376c2f031d57f2fad3d9773b51f5916111.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')
0 files changed, 0 insertions, 0 deletions