From: phk Date: Mon, 8 Oct 2007 11:28:11 +0000 (+0000) Subject: Add an assert for spotting ticket #162 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac414335d1ae2efae1fc48648b4e607ed87279d9;p=varnish Add an assert for spotting ticket #162 git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2088 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c b/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c index b98f4b99..800bc102 100644 --- a/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c +++ b/varnish-cache/bin/varnishd/cache_acceptor_kqueue.c @@ -88,6 +88,7 @@ vca_kev(const struct kevent *kp) while (i >= sizeof ss[0]) { CHECK_OBJ_NOTNULL(ss[j], SESS_MAGIC); assert(ss[j]->fd >= 0); + AZ(ss[j]->obj); VTAILQ_INSERT_TAIL(&sesshead, ss[j], list); vca_kq_sess(ss[j], EV_ADD); j++;