[master] 2e0339c Correct check
Federico G. Schwindt
fgsch at lodoss.net
Thu May 25 23:15:05 CEST 2017
commit 2e0339cd73c7b6b93059b6a7b2dd59301d741b07
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date: Thu May 25 22:14:30 2017 +0100
Correct check
diff --git a/lib/libvarnishapi/vjsn.c b/lib/libvarnishapi/vjsn.c
index 9994d23..444a471 100644
--- a/lib/libvarnishapi/vjsn.c
+++ b/lib/libvarnishapi/vjsn.c
@@ -377,7 +377,7 @@ vjsn_value(struct vjsn *js)
js->ptr += 4;
return (vjsn_val_new(VJSN_TRUE));
}
- if (!memcmp(js->ptr, "false", 4)) {
+ if (!memcmp(js->ptr, "false", 5)) {
js->ptr += 5;
return (vjsn_val_new(VJSN_FALSE));
}
More information about the varnish-commit
mailing list