diff options
author | dchagin <dchagin@FreeBSD.org> | 2011-03-19 21:10:57 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2011-03-19 21:10:57 +0000 |
commit | a96a94aaf2c2c5e969e0f3d4104fd843b96c473f (patch) | |
tree | f20fd44c2e326649e1358a182541a3a3be52aa15 | |
parent | 7c3982eb1db23f686c22e3a500eb0a1b5aca64ca (diff) | |
download | FreeBSD-src-a96a94aaf2c2c5e969e0f3d4104fd843b96c473f.zip FreeBSD-src-a96a94aaf2c2c5e969e0f3d4104fd843b96c473f.tar.gz |
ouch, newrt is used on the return path, my fault.
Partialy revert the previous change.
MFC after: 1 Week.
-rw-r--r-- | sys/net/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/route.c b/sys/net/route.c index 15f1834..a41efa9 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); |