ouch, newrt is used on the return path, my fault.

Partialy revert the previous change.

MFC after:	1 Week.
This commit is contained in:
Dmitry Chagin 2011-03-19 21:10:57 +00:00
parent 05bff80a71
commit e579f1c1cf

View file

@ -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);