From: Bill Stoddard Date: Fri, 25 Oct 2002 20:58:55 +0000 (+0000) Subject: Fix a segfault when the client closes the connection prematurely. X-Git-Tag: 2.0.44~218 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20ea80fcd9200d27eef897ea378b8cf0e4434c0c;p=apache Fix a segfault when the client closes the connection prematurely. Reported by: Fabio Wakim Trentini Reviewed by: Bill Stoddard git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97305 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_http.c b/modules/proxy/proxy_http.c index 115251602d..ee80c67d3c 100644 --- a/modules/proxy/proxy_http.c +++ b/modules/proxy/proxy_http.c @@ -374,7 +374,7 @@ apr_status_t ap_proxy_http_create_connection(apr_pool_t *p, request_rec *r, *origin = ap_run_create_connection(c->pool, r->server, p_conn->sock, r->connection->id, r->connection->sbh, c->bucket_alloc); - if (!origin) { + if (!*origin) { /* the peer reset the connection already; ap_run_create_connection() * closed the socket */