mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 06:15:33 -04:00
check return result from rtalloc1 before invoking RTUNLOCK
This commit is contained in:
parent
e07c897e61
commit
37bdc2803f
1 changed files with 2 additions and 1 deletions
|
|
@ -256,7 +256,8 @@ in6_selectsrc(dstsock, opts, mopts, ro, laddr, errorp)
|
|||
if (IN6_IS_ADDR_MULTICAST(dst)) {
|
||||
ro->ro_rt = rtalloc1(&((struct route *)ro)
|
||||
->ro_dst, 0, 0UL);
|
||||
RT_UNLOCK(ro->ro_rt);
|
||||
if (ro->ro_rt)
|
||||
RT_UNLOCK(ro->ro_rt);
|
||||
} else {
|
||||
rtalloc((struct route *)ro);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue