From e579f1c1cf2b39daa458e5537e2479f5e745ee93 Mon Sep 17 00:00:00 2001 From: Dmitry Chagin Date: Sat, 19 Mar 2011 21:10:57 +0000 Subject: [PATCH] ouch, newrt is used on the return path, my fault. Partialy revert the previous change. MFC after: 1 Week. --- sys/net/route.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/net/route.c b/sys/net/route.c index 15f18343ef0..a41efa9ed32 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -348,13 +348,13 @@ rtalloc1_fib(struct sockaddr *dst, int report, u_long ignflags, if (dst->sa_family != AF_INET) /* Only INET supports > 1 fib now */ fibnum = 0; rnh = rt_tables_get_rnh(fibnum, dst->sa_family); + newrt = NULL; if (rnh == NULL) goto miss; /* * Look up the address in the table for that Address Family */ - newrt = NULL; needlock = !(ignflags & RTF_RNH_LOCKED); if (needlock) RADIX_NODE_HEAD_RLOCK(rnh);