From 039a65d0e4f33f8432caae78cd919d2fd2052eea Mon Sep 17 00:00:00 2001 From: Jan Moskyto Matejka Date: Fri, 24 Feb 2017 14:05:11 +0100 Subject: Nexthop: Fixed hostentry --- nest/rt-attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nest/rt-attr.c') diff --git a/nest/rt-attr.c b/nest/rt-attr.c index afc97e22..2c8ee7db 100644 --- a/nest/rt-attr.c +++ b/nest/rt-attr.c @@ -1155,12 +1155,12 @@ rta__free(rta *a) *a->pprev = a->next; if (a->next) a->next->pprev = a->pprev; - a->aflags = 0; /* Poison the entry */ rt_unlock_hostentry(a->hostentry); rt_unlock_source(a->src); if (a->nh.next) nexthop_free(a->nh.next); ea_free(a->eattrs); + a->aflags = 0; /* Poison the entry */ sl_free(rta_slab(a), a); } -- cgit v1.2.3