Commit 47e57ab5 authored by Ruediger Pluem's avatar Ruediger Pluem
Browse files

* 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
parent bfe6f47f
Loading
Loading
Loading
Loading
+4 −2
Changes for modules/proxy/mod_proxy_http.c: 4 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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");