]> err.no Git - varnish/commitdiff
We may in fact not have any headers.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 8 Oct 2007 11:32:30 +0000 (11:32 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 8 Oct 2007 11:32:30 +0000 (11:32 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2090 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_http.c

index f79f2230ad231f5e94996b0b16d31f1f6d3423ae..b9812fc6c7ddcd094de2d2b1841d685b6d425357 100644 (file)
@@ -362,7 +362,7 @@ http_dissect_hdrs(struct worker *w, struct http *hp, int fd, char *p, txt t)
        hp->nhd = HTTP_HDR_FIRST;
        hp->conds = 0;
        r = NULL;               /* For FlexeLint */
-       assert(p < t.e);        /* http_header_complete() guarantees this */
+       assert(p <= t.e);       /* http_header_complete() guarantees this */
        for (; p < t.e; p = r) {
                /* XXX: handle continuation lines */
                q = strchr(p, '\n');