Index: locrewrite.c =================================================================== RCS file: /export/home/jdw/cvsroot/squid/src/locrewrite.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 locrewrite.c --- locrewrite.c 18 Jun 2002 20:09:05 -0000 1.1.1.1 +++ locrewrite.c 19 Jun 2002 00:05:27 -0000 @@ -53,8 +53,8 @@ locationRewriteHandleReply(void *data, char *reply) { rewriteStateData *r = data; - int valid; char *t; + void *cbdata; debug(29, 5) ("rewriteHandleRead: {%s}\n", reply ? reply : ""); if (reply) { if ((t = strchr(reply, ' '))) @@ -62,10 +62,8 @@ if (*reply == '\0') reply = NULL; } - valid = cbdataReferenceValid(r->data); - cbdataReferenceDone(r->data); - if (valid) - r->handler(r->data, reply); + if (cbdataReferenceValidDone(r->data,&cbdata)) + r->handler(cbdata, reply); locationRewriteStateFree(r); }