]> err.no Git - varnish/commitdiff
Add an assert for spotting ticket #162
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 8 Oct 2007 11:28:11 +0000 (11:28 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 8 Oct 2007 11:28:11 +0000 (11:28 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2088 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_acceptor_kqueue.c

index b98f4b996dc02ba5baaaf6f2fd830e3e05d591da..800bc102b3ed6abf11115a0ae079cf95ecc1714d 100644 (file)
@@ -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++;