r593 - trunk/varnish-cache/bin/varnishd
phk at projects.linpro.no
phk at projects.linpro.no
Tue Aug 1 21:48:36 CEST 2006
Author: phk
Date: 2006-08-01 21:48:36 +0200 (Tue, 01 Aug 2006)
New Revision: 593
Modified:
trunk/varnish-cache/bin/varnishd/cache_http.c
Log:
More miniobj checks
Modified: trunk/varnish-cache/bin/varnishd/cache_http.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_http.c 2006-08-01 17:54:34 UTC (rev 592)
+++ trunk/varnish-cache/bin/varnishd/cache_http.c 2006-08-01 19:48:36 UTC (rev 593)
@@ -500,7 +500,7 @@
{
unsigned l;
- assert(hp != NULL);
+ CHECK_OBJ_NOTNULL(hp, HTTP_MAGIC);
assert(hp->v <= hp->e);
assert(hp->t <= hp->v);
if (0)
@@ -537,6 +537,8 @@
{
unsigned u, l;
+ CHECK_OBJ_NOTNULL(to, HTTP_MAGIC);
+ CHECK_OBJ_NOTNULL(fm, HTTP_MAGIC);
l = 0;
for (u = 0; u < fm->nhd; u++) {
if (fm->hd[u].b == NULL)
@@ -656,6 +658,8 @@
{
unsigned u;
+ CHECK_OBJ_NOTNULL(fm, HTTP_MAGIC);
+ CHECK_OBJ_NOTNULL(to, HTTP_MAGIC);
to->nhd = HTTP_HDR_FIRST;
for (u = HTTP_HDR_FIRST; u < fm->nhd; u++) {
#define HTTPH(a, b, c, d, e, f, g) \
More information about the varnish-commit
mailing list