summaryrefslogtreecommitdiff
path: root/ace/SSL
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2001-09-25 23:17:54 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2001-09-25 23:17:54 +0000
commit90daabfba972b01c35708b67ac57b318574985c0 (patch)
tree9ec667527e6ece419c713be99ee11f175eb40606 /ace/SSL
parent24fe4294fdc0809e6c977741c9646192ec5897ff (diff)
downloadATCD-90daabfba972b01c35708b67ac57b318574985c0.tar.gz
ChangeLogTag:Tue Sep 25 16:12:14 2001 Ossama Othman <ossama@uci.edu>
Diffstat (limited to 'ace/SSL')
-rw-r--r--ace/SSL/SSL_SOCK_Stream.i8
1 files changed, 3 insertions, 5 deletions
diff --git a/ace/SSL/SSL_SOCK_Stream.i b/ace/SSL/SSL_SOCK_Stream.i
index a926dc8c41b..60de757f50a 100644
--- a/ace/SSL/SSL_SOCK_Stream.i
+++ b/ace/SSL/SSL_SOCK_Stream.i
@@ -199,11 +199,9 @@ ACE_SSL_SOCK_Stream::recv_i (void *buf,
// If not an EOF, then fall through to "default" case.
-#ifdef WIN32
- // OpenSSL does not store the last error in errno so
- // explicitly do so.
- errno = ::GetLastError ();
-#endif /* WIN32 */
+ // On some platforms (e.g. MS Windows) OpenSSL does not
+ // store the last error in errno so explicitly do so.
+ ACE_OS::set_errno_to_last_error ();
default:
#ifndef ACE_NDEBUG