]> granicus.if.org Git - apache/commitdiff
Fix a segfault when the client closes the connection prematurely.
authorBill Stoddard <stoddard@apache.org>
Fri, 25 Oct 2002 20:58:55 +0000 (20:58 +0000)
committerBill Stoddard <stoddard@apache.org>
Fri, 25 Oct 2002 20:58:55 +0000 (20:58 +0000)
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

modules/proxy/proxy_http.c

index 115251602d34ff88d7092cdef83fe325a558b843..ee80c67d3c3056af60983eb0a5c187726277e35d 100644 (file)
@@ -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
          */