]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* optimizing hook check as suggested by Yann.
authorStefan Eissing <icing@apache.org>
Thu, 9 Sep 2021 14:42:48 +0000 (14:42 +0000)
committerStefan Eissing <icing@apache.org>
Thu, 9 Sep 2021 14:42:48 +0000 (14:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1893179 13f79535-47bb-0310-9956-ffa450edef68

server/ssl.c

index e9432793d9c25698f6e963f277b15098e64ed48e..6e3a7efba515a1d058d290da66a3437d159de431 100644 (file)
@@ -157,7 +157,8 @@ AP_DECLARE(int) ap_ssl_bind_outgoing(conn_rec *c, struct ap_conf_vector_t *dir_c
 
 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;
 }