summaryrefslogtreecommitdiffstats
path: root/modules/arch
diff options
context:
space:
mode:
authorBradley Nicholes <bnicholes@apache.org>2004-03-16 03:49:15 +0100
committerBradley Nicholes <bnicholes@apache.org>2004-03-16 03:49:15 +0100
commit2e0569de3dcfea1f3ff9778824f052d47b61d169 (patch)
treeaf514cce56252cb728dc0f1a7980647bdcde0a0c /modules/arch
parentAdd modules/ssl to the include path for the NetWare build (diff)
downloadapache2-2e0569de3dcfea1f3ff9778824f052d47b61d169.tar.xz
apache2-2e0569de3dcfea1f3ff9778824f052d47b61d169.zip
Report the NetWare socket error since we are using native socket calls
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102986 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/arch')
-rw-r--r--modules/arch/netware/mod_nw_ssl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/arch/netware/mod_nw_ssl.c b/modules/arch/netware/mod_nw_ssl.c
index 0eb914ad2f..2ddd831278 100644
--- a/modules/arch/netware/mod_nw_ssl.c
+++ b/modules/arch/netware/mod_nw_ssl.c
@@ -224,7 +224,7 @@ static int make_secure_socket(apr_pool_t *pconf, const struct sockaddr_in *serve
(LPWSAPROTOCOL_INFO)&SecureProtoInfo, 0, 0);
if (s == INVALID_SOCKET) {
- ap_log_error(APLOG_MARK, APLOG_CRIT, apr_get_netos_error(), sconf,
+ ap_log_error(APLOG_MARK, APLOG_CRIT, WSAGetLastError(), sconf,
"make_secure_socket: failed to get a socket for %s",
addr);
return -1;
@@ -235,7 +235,7 @@ static int make_secure_socket(apr_pool_t *pconf, const struct sockaddr_in *serve
if (WSAIoctl(s, SO_SSL_SET_FLAGS, (char *)&optParam,
sizeof(optParam), NULL, 0, NULL, NULL, NULL)) {
- ap_log_error(APLOG_MARK, APLOG_CRIT, apr_get_netos_error(), sconf,
+ ap_log_error(APLOG_MARK, APLOG_CRIT, WSAGetLastError(), sconf,
"make_secure_socket: for %s, WSAIoctl: "
"(SO_SSL_SET_FLAGS)", addr);
return -1;
@@ -250,7 +250,7 @@ static int make_secure_socket(apr_pool_t *pconf, const struct sockaddr_in *serve
if (WSAIoctl(s, SO_SSL_SET_SERVER, (char *)&opts, sizeof(opts),
NULL, 0, NULL, NULL, NULL) != 0) {
- ap_log_error(APLOG_MARK, APLOG_CRIT, apr_get_netos_error(), sconf,
+ ap_log_error(APLOG_MARK, APLOG_CRIT, WSAGetLastError(), sconf,
"make_secure_socket: for %s, WSAIoctl: "
"(SO_SSL_SET_SERVER)", addr);
return -1;
@@ -261,7 +261,7 @@ static int make_secure_socket(apr_pool_t *pconf, const struct sockaddr_in *serve
if(WSAIoctl(s, SO_SSL_SET_FLAGS, (char*)&optParam,
sizeof(optParam), NULL, 0, NULL, NULL, NULL)) {
- ap_log_error(APLOG_MARK, APLOG_CRIT, apr_get_netos_error(), sconf,
+ ap_log_error(APLOG_MARK, APLOG_CRIT, WSAGetLastError(), sconf,
"make_secure_socket: for %s, WSAIoctl: "
"(SO_SSL_SET_FLAGS)", addr);
return -1;