Here is the fix for the regsub() issue: Don't release negative bytecounts,
we have the special variant WS_ReleaseP() just for jobs like this.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2792
d4fa192b-c00b-0410-8231-
f00ffab90ce4
if (i == REG_NOMATCH)
return(str);
-VSL(SLT_Debug, sp->fd, "REGSUB {");
u = WS_Reserve(sp->http->ws, 0);
res.e = res.b = b0 = sp->http->ws->f;
res.e += u;
return (str);
}
Tcheck(res);
- WS_Release(sp->http->ws, b0 - res.b);
-VSL(SLT_Debug, sp->fd, "REGSUB }");
+ WS_ReleaseP(sp->http->ws, res.b);
return (b0);
}