summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/ssl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/ssl.c b/server/ssl.c
index e9432793d9..6e3a7efba5 100644
--- a/server/ssl.c
+++ b/server/ssl.c
@@ -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;
}