]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
bugfix: a thinko in client_side led to calling httpRequestBodyHandler with NULL conte...
authorrobertc <>
Fri, 17 Oct 2003 02:47:58 +0000 (02:47 +0000)
committerrobertc <>
Fri, 17 Oct 2003 02:47:58 +0000 (02:47 +0000)
src/client_side.cc

index 6758a5e96e71ffa541258f98471153c78a4b8257..5728cbdff7d9016a3fcf530b29a720fb7c16a624 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.662 2003/09/29 10:24:00 robertc Exp $
+ * $Id: client_side.cc,v 1.663 2003/10/16 20:47:58 robertc Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -2555,13 +2555,14 @@ clientAbortBody(HttpRequest * request)
         assert(request == conn->body.request);
         conn->body.buf = NULL;
         conn->body.callback = NULL;
-        conn->body.cbdata = NULL;
         conn->body.request = NULL;
         void *cbdata;
 
         if (cbdataReferenceValidDone(conn->body.cbdata, &cbdata))
             callback(buf, -1, cbdata); /* Signal abort to clientReadBody caller */
 
+        conn->body.cbdata = NULL;
+
         requestUnlink(request);
     }