diff options
author | Stefan Eissing <icing@apache.org> | 2021-09-09 16:42:48 +0200 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2021-09-09 16:42:48 +0200 |
commit | 866cf4dbfbab36fb9d689b9fe835ca2ab7f38291 (patch) | |
tree | 89c3af298d803c2d2bbf740a6991eded5809fcfd /server/ssl.c | |
parent | *core: clarify comments and use hook API better to check for presence of ca... (diff) | |
download | apache2-866cf4dbfbab36fb9d689b9fe835ca2ab7f38291.tar.xz apache2-866cf4dbfbab36fb9d689b9fe835ca2ab7f38291.zip |
* optimizing hook check as suggested by Yann.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1893179 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server/ssl.c')
-rw-r--r-- | server/ssl.c | 3 |
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; } |