]> err.no Git - varnish/commitdiff
Delete the right list item.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 19 Jul 2006 19:45:51 +0000 (19:45 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 19 Jul 2006 19:45:51 +0000 (19:45 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@503 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_session.c

index 0a74be4a80a1e4893425426758d9036ae2d359ea..6b9b4a98c727161627fc5fc5df514dac02d26e9c 100644 (file)
@@ -87,8 +87,8 @@ SES_RefSrcAddr(struct sess *sp)
                        c3 = c;
                        continue;
                }
-               TAILQ_REMOVE(ch, c2, list);
-               free(c2);
+               TAILQ_REMOVE(ch, c, list);
+               free(c);
                VSL_stats->n_srcaddr--;
        }
        if (c3 == NULL) {