mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
ouch, newrt is used on the return path, my fault.
Partialy revert the previous change. MFC after: 1 Week.
This commit is contained in:
parent
05bff80a71
commit
e579f1c1cf
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue