From: Doug MacEachern Date: Fri, 29 Mar 2002 17:48:28 +0000 (+0000) Subject: check the return value of ap_proxy_ssl_enable X-Git-Tag: 2.0.34~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4d0e50e00c86529abf19d65c57a94a1262a5696;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/modules/proxy/proxy_http.c b/modules/proxy/proxy_http.c index 0855114d4d6..de9f8acf62d 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,