summaryrefslogtreecommitdiff
path: root/modules/proxy/proxy_http.c
diff options
context:
space:
mode:
authorBill Stoddard <stoddard@apache.org>2002-10-25 20:58:55 +0000
committerBill Stoddard <stoddard@apache.org>2002-10-25 20:58:55 +0000
commit20ea80fcd9200d27eef897ea378b8cf0e4434c0c (patch)
tree019f5e23dff55304e52d887020fd71bab5fc6b92 /modules/proxy/proxy_http.c
parentd7cb5c9c6440378c3d4c9b7477d14718ca8dbda8 (diff)
downloadhttpd-20ea80fcd9200d27eef897ea378b8cf0e4434c0c.tar.gz
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
Diffstat (limited to 'modules/proxy/proxy_http.c')
-rw-r--r--modules/proxy/proxy_http.c2
1 files changed, 1 insertions, 1 deletions
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
*/