From 91960c0b37667d922fdcd1482b5d9d22926bcbb7 Mon Sep 17 00:00:00 2001 From: Ruediger Pluem Date: Fri, 11 Feb 2011 12:50:31 +0000 Subject: [PATCH] * Play safe if the notes table does not contain an SSL_connect_rv key. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1069785 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/mod_proxy_http.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/proxy/mod_proxy_http.c b/modules/proxy/mod_proxy_http.c index 958e4e10d1b..7271ca17fbb 100644 --- a/modules/proxy/mod_proxy_http.c +++ b/modules/proxy/mod_proxy_http.c @@ -272,8 +272,10 @@ static int pass_brigade(apr_bucket_alloc_t *bucket_alloc, "proxy: pass request body failed to %pI (%s)", p_conn->addr, p_conn->hostname); if (origin->aborted) { - if (strcmp(apr_table_get(origin->notes, - "SSL_connect_rv"), "err") == 0) { + const char *ssl_note; + + if (((ssl_note = apr_table_get(origin->notes, "SSL_connect_rv")) + != NULL) && (strcmp(ssl_note, "err") == 0)) { return ap_proxyerror(r, HTTP_INTERNAL_SERVER_ERROR, "Error during SSL Handshake with" " remote server"); -- 2.47.2