From 10bda6ff15b8abb8d014c412a2880d4474556efb Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 29 Mar 2002 17:48:28 +0000 Subject: [PATCH] check the return value of ap_proxy_ssl_enable git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94313 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/proxy_http.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/proxy/proxy_http.c b/modules/proxy/proxy_http.c index 0855114d4d..de9f8acf62 100644 --- a/modules/proxy/proxy_http.c +++ b/modules/proxy/proxy_http.c @@ -392,8 +392,11 @@ apr_status_t ap_proxy_http_create_connection(apr_pool_t *p, request_rec *r, backend->hostname = apr_pstrdup(c->pool, p_conn->name); backend->port = p_conn->port; - if (backend->is_ssl) { - ap_proxy_ssl_enable(backend->connection); + if (backend->is_ssl && !ap_proxy_ssl_enable(backend->connection)) { + ap_log_error(APLOG_MARK, APLOG_ERR|APLOG_NOERRNO, 0, + r->server, "proxy: failed to enable ssl support " + "for %pI (%s)", p_conn->addr, p_conn->name); + return HTTP_INTERNAL_SERVER_ERROR; } ap_log_error(APLOG_MARK, APLOG_DEBUG|APLOG_NOERRNO, 0, r->server, -- 2.40.0