From: robertc <> Date: Fri, 17 Oct 2003 02:47:58 +0000 (+0000) Subject: bugfix: a thinko in client_side led to calling httpRequestBodyHandler with NULL conte... X-Git-Tag: SQUID_3_0_PRE4~1186 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1bb6a8050a010fe27736d6a3c22f537bd3418951;p=thirdparty%2Fsquid.git bugfix: a thinko in client_side led to calling httpRequestBodyHandler with NULL context. Bug 776 --- diff --git a/src/client_side.cc b/src/client_side.cc index 6758a5e96e..5728cbdff7 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -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); }