svn commit: r219786 - head/sys/net
Dmitry Chagin
dchagin at FreeBSD.org
Sat Mar 19 21:10:57 UTC 2011
Author: dchagin
Date: Sat Mar 19 21:10:57 2011
New Revision: 219786
URL: http://svn.freebsd.org/changeset/base/219786
Log:
ouch, newrt is used on the return path, my fault.
Partialy revert the previous change.
MFC after: 1 Week.
Modified:
head/sys/net/route.c
Modified: head/sys/net/route.c
==============================================================================
--- head/sys/net/route.c Sat Mar 19 20:36:05 2011 (r219785)
+++ head/sys/net/route.c Sat Mar 19 21:10:57 2011 (r219786)
@@ -348,13 +348,13 @@ rtalloc1_fib(struct sockaddr *dst, int r
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);
More information about the svn-src-all
mailing list