From bf7294b5cab4e325778d48ac07ceab0c55c06829 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 19 Jul 2006 19:45:51 +0000 Subject: [PATCH] Delete the right list item. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@503 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/varnish-cache/bin/varnishd/cache_session.c b/varnish-cache/bin/varnishd/cache_session.c index 0a74be4a..6b9b4a98 100644 --- a/varnish-cache/bin/varnishd/cache_session.c +++ b/varnish-cache/bin/varnishd/cache_session.c @@ -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) { -- 2.39.5