You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ic...@apache.org on 2021/09/09 14:42:48 UTC

svn commit: r1893179 - /httpd/httpd/trunk/server/ssl.c

Author: icing
Date: Thu Sep  9 14:42:48 2021
New Revision: 1893179

URL: http://svn.apache.org/viewvc?rev=1893179&view=rev
Log:
 * optimizing hook check as suggested by Yann.


Modified:
    httpd/httpd/trunk/server/ssl.c

Modified: httpd/httpd/trunk/server/ssl.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/ssl.c?rev=1893179&r1=1893178&r2=1893179&view=diff
==============================================================================
--- httpd/httpd/trunk/server/ssl.c (original)
+++ httpd/httpd/trunk/server/ssl.c Thu Sep  9 14:42:48 2021
@@ -157,7 +157,8 @@ AP_DECLARE(int) ap_ssl_bind_outgoing(con
 
 AP_DECLARE(int) ap_ssl_has_outgoing_handlers(void)
 {
-    return (ap_hook_get_ssl_bind_outgoing() && ap_hook_get_ssl_bind_outgoing()->nelts > 0)
+    apr_array_header_t *hooks = ap_hook_get_ssl_bind_outgoing();
+    return (hooks && hooks->nelts > 0)
         || module_ssl_engine_set || module_ssl_proxy_enable;
 }