]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Summary: Check status of http request after redirection.
authorrobertc <>
Wed, 5 Feb 2003 10:11:14 +0000 (10:11 +0000)
committerrobertc <>
Wed, 5 Feb 2003 10:11:14 +0000 (10:11 +0000)
Keywords:

Check status of http request after redirection.

src/client_side_request.cc

index f0088f6103145ca13aa4703c39a1dcbf214c9890..b431b9422098e02e82050abf2704b12030da9161 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side_request.cc,v 1.13 2003/02/05 02:20:09 robertc Exp $
+ * $Id: client_side_request.cc,v 1.14 2003/02/05 03:11:14 robertc Exp $
  * 
  * DEBUG: section 85    Client-side Request Routines
  * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c)
@@ -626,6 +626,13 @@ void
 clientRedirectDone(void *data, char *result)
 {
     ClientRequestContext *context = (ClientRequestContext *)data;
+    clientHttpRequest *http_ = context->http;
+
+    if (!cbdataReferenceValid (http_)) {
+       context->deleteSelf();
+       return;
+    }
+    
     clientHttpRequest *http = context->http;
     request_t *new_request = NULL;
     request_t *old_request = http->request;