diff options
author | Simon Josefsson <simon@josefsson.org> | 2006-11-07 10:26:17 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2006-11-07 10:26:17 +0000 |
commit | 9e37670890144903424b9683cb8c62507ff9632a (patch) | |
tree | b2e21e53138bf0241d3702f380776563120d4488 /lib/gnutls_buffers.c | |
parent | 76cd0edbda890dcc21cb3c989c4ca158a8ec9d6c (diff) | |
download | gnutls-9e37670890144903424b9683cb8c62507ff9632a.tar.gz |
Don't use errno to avoid thread-safety issues.
Diffstat (limited to 'lib/gnutls_buffers.c')
-rw-r--r-- | lib/gnutls_buffers.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/gnutls_buffers.c b/lib/gnutls_buffers.c index f77308b4fe..5600141b90 100644 --- a/lib/gnutls_buffers.c +++ b/lib/gnutls_buffers.c @@ -329,15 +329,15 @@ _gnutls_read (gnutls_session_t session, void *iptr, switch (tmperr) { case WSAEWOULDBLOCK: - errno = EAGAIN; + session->internals.errnum = EAGAIN; break; case WSAEINTR: - errno = EINTR; + session->internals.errnum = EINTR; break; default: - errno = EIO; + session->internals.errnum = EIO; break; } WSASetLastError(tmperr); @@ -793,15 +793,15 @@ _gnutls_io_write_buffered (gnutls_session_t session, switch (tmperr) { case WSAEWOULDBLOCK: - errno = EAGAIN; + session->internals.errnum = EAGAIN; break; case WSAEINTR: - errno = EINTR; + session->internals.errnum = EINTR; break; default: - errno = EIO; + session->internals.errnum = EIO; break; } WSASetLastError(tmperr); |