diff options
author | beck <> | 2015-09-09 18:22:33 +0000 |
---|---|---|
committer | beck <> | 2015-09-09 18:22:33 +0000 |
commit | 4a79aa2cb1398f29f4fe23724a6ad3e4ba8e3b94 (patch) | |
tree | 8f59b1bd1832cc9c1d0447bfda4b559c539e960a /src/lib/libtls/tls_config.c | |
parent | f9cb24a08622ed7f37536966cc1eacafe67ae84e (diff) | |
download | openbsd-4a79aa2cb1398f29f4fe23724a6ad3e4ba8e3b94.tar.gz openbsd-4a79aa2cb1398f29f4fe23724a6ad3e4ba8e3b94.tar.bz2 openbsd-4a79aa2cb1398f29f4fe23724a6ad3e4ba8e3b94.zip |
always clear errno when coming back from tls_read tls_write, and tls_close.
this avoids the problem of people checking for return values < 0
and then checking for errno before checking for TLS_READ_AGAIN
TLS_WRITE_AGAIN - since we can not guarantee what errno will be
set to from the underlying library calls
Diffstat (limited to 'src/lib/libtls/tls_config.c')
0 files changed, 0 insertions, 0 deletions