mirror of
https://github.com/apache/httpd.git
synced 2025-07-23 01:08:51 +00:00
* 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
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user