[4.1] 96b2e2d Get the sign right on the overflow test
Lasse Karstensen
lkarsten at varnish-software.com
Thu Feb 11 17:14:32 CET 2016
commit 96b2e2de336e569df82f8fdb64e909691b281e9f
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Feb 2 09:14:27 2016 +0000
Get the sign right on the overflow test
Spotted by: fgs
diff --git a/bin/varnishd/cache/cache_panic.c b/bin/varnishd/cache/cache_panic.c
index 8e7fd1e..eb4aa2c 100644
--- a/bin/varnishd/cache/cache_panic.c
+++ b/bin/varnishd/cache/cache_panic.c
@@ -115,8 +115,8 @@ pan_ws(struct vsb *vsb, const struct ws *ws)
VSB_printf(vsb, "ws = %p {\n", ws);
VSB_indent(vsb, 2);
- if (ws->id[0] & 0x20)
- VSB_printf(vsb, "OVERFLOW ");
+ if (!(ws->id[0] & 0x20))
+ VSB_printf(vsb, "OVERFLOWED ");
VSB_printf(vsb, "id = \"%s\",\n", ws->id);
VSB_printf(vsb, "{s,f,r,e} = {%p", ws->s);
if (ws->f > ws->s)
More information about the varnish-commit
mailing list