]> granicus.if.org Git - apache/commitdiff
Report the NetWare socket error since we are using native socket calls
authorBradley Nicholes <bnicholes@apache.org>
Tue, 16 Mar 2004 02:49:15 +0000 (02:49 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Tue, 16 Mar 2004 02:49:15 +0000 (02:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102986 13f79535-47bb-0310-9956-ffa450edef68

modules/arch/netware/mod_nw_ssl.c
server/mpm/netware/mpm_netware.c

index 0eb914ad2f3369b4a3422a7a4df5ec27a64ac7df..2ddd831278b7c7bd8a6ad0726849441453f29a56 100644 (file)
@@ -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;
index 3fcdacce7c2b607cc66f0ba73b829613a13addcf..0bda3363484681a0ebf82c5d2ba8ada8f23c6e77 100644 (file)
@@ -385,7 +385,7 @@ void worker_main(void *arg)
 
             if (srv <= 0) {
                 if (srv < 0) {
-                    ap_log_error(APLOG_MARK, APLOG_NOTICE, apr_get_netos_error(), ap_server_conf,
+                    ap_log_error(APLOG_MARK, APLOG_NOTICE, WSAGetLastError(), ap_server_conf,
                         "select() failed on listen socket");
                     apr_thread_yield();
                 }