From: William A. Rowe Jr Date: Tue, 29 Oct 2002 05:25:51 +0000 (+0000) Subject: On an errno rampage... ap_log_error takes an apr_status_t X-Git-Tag: 2.0.44~195 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=467916080b39fc7f9cfd8197027fcb8a2ed5bd88;p=thirdparty%2Fapache%2Fhttpd.git On an errno rampage... ap_log_error takes an apr_status_t git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97341 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/arch/netware/mod_nw_ssl.c b/modules/arch/netware/mod_nw_ssl.c index c474812f566..07e8043f91f 100644 --- a/modules/arch/netware/mod_nw_ssl.c +++ b/modules/arch/netware/mod_nw_ssl.c @@ -182,7 +182,7 @@ static int find_secure_listener(seclisten_rec *lr) static int make_secure_socket(apr_pool_t *pconf, const struct sockaddr_in *server, - char* key, int mutual, server_rec *server_conf) + char* key, int mutual, server_rec *sconf) { int s; int one = 1; @@ -210,9 +210,9 @@ static int make_secure_socket(apr_pool_t *pconf, const struct sockaddr_in *serve (LPWSAPROTOCOL_INFO)&SecureProtoInfo, 0, 0); if (s == INVALID_SOCKET) { - errno = WSAGetLastError(); - ap_log_error(APLOG_MARK, APLOG_CRIT, errno, server_conf, - "make_secure_socket: failed to get a socket for %s", addr); + ap_log_error(APLOG_MARK, APLOG_CRIT, apr_get_netos_error(), sconf, + "make_secure_socket: failed to get a socket for %s", + addr); return -1; } @@ -221,9 +221,9 @@ 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)) { - errno = WSAGetLastError(); - ap_log_error(APLOG_MARK, APLOG_CRIT, errno, server_conf, - "make_secure_socket: for %s, WSAIoctl: (SO_SSL_SET_FLAGS)", addr); + ap_log_error(APLOG_MARK, APLOG_CRIT, apr_get_netos_error(), sconf, + "make_secure_socket: for %s, WSAIoctl: " + "(SO_SSL_SET_FLAGS)", addr); return -1; } } @@ -236,9 +236,9 @@ 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) { - errno = WSAGetLastError(); - ap_log_error(APLOG_MARK, APLOG_CRIT, errno, server_conf, - "make_secure_socket: for %s, WSAIoctl: (SO_SSL_SET_SERVER)", addr); + ap_log_error(APLOG_MARK, APLOG_CRIT, apr_get_netos_error(), sconf, + "make_secure_socket: for %s, WSAIoctl: " + "(SO_SSL_SET_SERVER)", addr); return -1; } @@ -247,9 +247,9 @@ 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)) { - errno = WSAGetLastError(); - ap_log_error( APLOG_MARK, APLOG_CRIT, errno, server_conf, - "make_secure_socket: for %s, WSAIoctl: (SO_SSL_SET_FLAGS)", addr ); + ap_log_error(APLOG_MARK, APLOG_CRIT, apr_get_netos_error(), sconf, + "make_secure_socket: for %s, WSAIoctl: " + "(SO_SSL_SET_FLAGS)", addr); return -1; } }