You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2015/12/22 08:42:21 UTC

svn commit: r1721313 - /httpd/httpd/trunk/modules/arch/netware/mod_nw_ssl.c

Author: jailletc36
Date: Tue Dec 22 07:42:21 2015
New Revision: 1721313

URL: http://svn.apache.org/viewvc?rev=1721313&view=rev
Log:
Save a few bytes in conf pool when processing 'NWSSLTrustedCerts'.

*Untested* as I don't have the corresponding system.

Modified:
    httpd/httpd/trunk/modules/arch/netware/mod_nw_ssl.c

Modified: httpd/httpd/trunk/modules/arch/netware/mod_nw_ssl.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/arch/netware/mod_nw_ssl.c?rev=1721313&r1=1721312&r2=1721313&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/arch/netware/mod_nw_ssl.c (original)
+++ httpd/httpd/trunk/modules/arch/netware/mod_nw_ssl.c Tue Dec 22 07:42:21 2015
@@ -404,7 +404,7 @@ static int SSLize_Socket(SOCKET socketHn
     ulFlag = SO_TLS_ENABLE;
     rcode = WSAIoctl(socketHnd, SO_TLS_SET_FLAGS, &ulFlag,
                      sizeof(unsigned long), NULL, 0, NULL, NULL, NULL);
-    if(rcode) {
+    if (rcode) {
         ap_log_error(APLOG_MARK, APLOG_ERR, 0, r->server, APLOGNO(02126)
                      "Error: %d with WSAIoctl(SO_TLS_SET_FLAGS, SO_TLS_ENABLE)",
                      WSAGetLastError());
@@ -635,7 +635,7 @@ static const char *set_trusted_certs(cmd
 {
     char **ptr = (char **)apr_array_push(certlist);
 
-    *ptr = apr_pstrdup(cmd->pool, arg);
+    *ptr = arg;
     return NULL;
 }