r1562 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Mon Jun 25 16:10:34 CEST 2007


Author: phk
Date: 2007-06-25 16:10:34 +0200 (Mon, 25 Jun 2007)
New Revision: 1562

Modified:
   trunk/varnish-cache/bin/varnishd/cache_hash.c
Log:
Fix a NULL pointer deref in the Vary code.


Modified: trunk/varnish-cache/bin/varnishd/cache_hash.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_hash.c	2007-06-25 12:38:20 UTC (rev 1561)
+++ trunk/varnish-cache/bin/varnishd/cache_hash.c	2007-06-25 14:10:34 UTC (rev 1562)
@@ -158,7 +158,7 @@
 			o->ttl = 0;
 			VSL(SLT_ExpBan, 0, "%u was banned", o->xid);
 			EXP_TTLchange(o);
-		} else if (VRY_Match(sp, o->vary))
+		} else if (o->vary != NULL && VRY_Match(sp, o->vary))
 			break;
 		o->refcnt--;
 	}




More information about the varnish-commit mailing list