]> err.no Git - varnish/commitdiff
Change the assert() that triggers in #167 to spassert().
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 15 Nov 2007 16:02:05 +0000 (16:02 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Thu, 15 Nov 2007 16:02:05 +0000 (16:02 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2255 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_response.c

index 8ab464372b95a5570dd4932fc56db1d0c3b947cd..84ec31ffe609d070f61303ec113c59259859fd58 100644 (file)
@@ -191,7 +191,7 @@ RES_WriteObj(struct sess *sp)
                        VSL_stats->n_objwrite++;
                        WRK_Write(sp->wrk, st->ptr, st->len);
                }
-               assert(u == sp->obj->len);
+               spassert(u == sp->obj->len);
                if (sp->esis > 0)
                        WRK_Write(sp->wrk, "\r\n", -1);
        }