r4603 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Wed Mar 3 10:12:11 CET 2010
Author: phk
Date: 2010-03-03 10:12:10 +0100 (Wed, 03 Mar 2010)
New Revision: 4603
Modified:
trunk/varnish-cache/bin/varnishd/cache_http.c
Log:
Assert on the right HTTP structure.
Found by: luc/tom28
Modified: trunk/varnish-cache/bin/varnishd/cache_http.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_http.c 2010-03-01 11:30:43 UTC (rev 4602)
+++ trunk/varnish-cache/bin/varnishd/cache_http.c 2010-03-03 09:12:10 UTC (rev 4603)
@@ -644,7 +644,7 @@
CHECK_OBJ_NOTNULL(fm, HTTP_MAGIC);
CHECK_OBJ_NOTNULL(to, HTTP_MAGIC);
- assert(n < to->shd);
+ assert(n < fm->shd);
Tcheck(fm->hd[n]);
if (to->nhd < to->shd) {
to->hd[to->nhd] = fm->hd[n];
More information about the varnish-commit
mailing list