Commit 824e251b authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Convert assert to error report



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3776 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 171916ed
......@@ -340,6 +340,11 @@ http_rxchar(struct http *hp, int n)
int i;
i = http_rxchar_eof(hp, n);
if (i <= 0) {
vtc_log(hp->vl, 0, "HTTP rx failed (%s)",
strerror(errno));
exit (1);
}
assert(i > 0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment