[master] d6b13ddef Null check
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Wed Feb 6 17:25:10 UTC 2019
commit d6b13ddef9557e3269f2cc4c014d47487447ef31
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Wed Feb 6 18:23:36 2019 +0100
Null check
diff --git a/bin/varnishd/cache/cache_range.c b/bin/varnishd/cache/cache_range.c
index c59fe857f..156e50e6f 100644
--- a/bin/varnishd/cache/cache_range.c
+++ b/bin/varnishd/cache/cache_range.c
@@ -67,6 +67,7 @@ vrg_range_bytes(struct req *req, enum vdp_action act, void **priv,
struct vrg_priv *vrg_priv;
CHECK_OBJ_NOTNULL(req, REQ_MAGIC);
+ AN(priv);
CAST_OBJ_NOTNULL(vrg_priv, *priv, VRG_PRIV_MAGIC);
l = vrg_priv->range_low - vrg_priv->range_off;
More information about the varnish-commit
mailing list