From fe07a9d08f578f63f8501f47aa6a11b785987ebe Mon Sep 17 00:00:00 2001 From: "Andrey V. Elsukov" Date: Thu, 25 Dec 2014 13:38:51 +0000 Subject: [PATCH] Fix VIMAGE build. --- sys/netipsec/key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netipsec/key.c b/sys/netipsec/key.c index 5fdf83b2c090..b9bcd5930ca3 100644 --- a/sys/netipsec/key.c +++ b/sys/netipsec/key.c @@ -7608,7 +7608,7 @@ key_destroy(void) TAILQ_INIT(&drainq); SPTREE_WLOCK(); for (i = 0; i < IPSEC_DIR_MAX; i++) { - TAILQ_CONCAT(&drainq, &V_sptree[dir], chain); + TAILQ_CONCAT(&drainq, &V_sptree[i], chain); } SPTREE_WUNLOCK(); sp = TAILQ_FIRST(&drainq);