From: phk Date: Mon, 8 Oct 2007 11:32:30 +0000 (+0000) Subject: We may in fact not have any headers. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dba6482b1a20250cbbd0174db64acf4630e43db6;p=varnish We may in fact not have any headers. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2090 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_http.c b/varnish-cache/bin/varnishd/cache_http.c index f79f2230..b9812fc6 100644 --- a/varnish-cache/bin/varnishd/cache_http.c +++ b/varnish-cache/bin/varnishd/cache_http.c @@ -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');