diff options
author | beck <> | 2015-09-09 18:22:33 +0000 |
---|---|---|
committer | beck <> | 2015-09-09 18:22:33 +0000 |
commit | 8e3f7ae09db7a69fa93309c91e8f6b29f5bf53db (patch) | |
tree | 8f59b1bd1832cc9c1d0447bfda4b559c539e960a /src/lib/libtls/tls_util.c | |
parent | 021566e057cd4ae3661bc959579c0729353ffae4 (diff) | |
download | openbsd-8e3f7ae09db7a69fa93309c91e8f6b29f5bf53db.tar.gz openbsd-8e3f7ae09db7a69fa93309c91e8f6b29f5bf53db.tar.bz2 openbsd-8e3f7ae09db7a69fa93309c91e8f6b29f5bf53db.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_util.c')
0 files changed, 0 insertions, 0 deletions