From: wessels <> Date: Fri, 20 Nov 1998 13:36:34 +0000 (+0000) Subject: NULL out srv->request after the callback X-Git-Tag: SQUID_3_0_PRE1~2507 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=63758217f4546379cb9d1f52a8b9461c52f720ca;p=thirdparty%2Fsquid.git NULL out srv->request after the callback --- diff --git a/src/helper.cc b/src/helper.cc index 339846877f..96d6df3dd0 100644 --- a/src/helper.cc +++ b/src/helper.cc @@ -219,6 +219,7 @@ helperServerFree(int fd, void *data) if (cbdataValid(r->data)) r->callback(r->data, srv->buf); helperRequestFree(r); + srv->request = NULL; } if (srv->wfd != srv->rfd) comm_close(srv->wfd); @@ -274,6 +275,7 @@ helperHandleRead(int fd, void *data) srv->flags.busy = 0; srv->offset = 0; helperRequestFree(r); + srv->request = NULL; hlp->stats.replies++; hlp->stats.avg_svc_time = intAverage(hlp->stats.avg_svc_time,