Fix rte leak introduced in r248070.
MFC after: 2 weeks
This commit is contained in:
parent
33da3daa40
commit
d54455b0c9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=250764
@ -1566,7 +1566,7 @@ rtinit1(struct ifaddr *ifa, int cmd, int flags, int fibnum)
|
|||||||
info.rti_ifa = NULL;
|
info.rti_ifa = NULL;
|
||||||
info.rti_flags = RTF_RNH_LOCKED;
|
info.rti_flags = RTF_RNH_LOCKED;
|
||||||
|
|
||||||
error = rtrequest1_fib(RTM_DELETE, &info, &rt, fibnum);
|
error = rtrequest1_fib(RTM_DELETE, &info, NULL, fibnum);
|
||||||
if (error == 0) {
|
if (error == 0) {
|
||||||
info.rti_ifa = ifa;
|
info.rti_ifa = ifa;
|
||||||
info.rti_flags = flags | RTF_RNH_LOCKED |
|
info.rti_flags = flags | RTF_RNH_LOCKED |
|
||||||
|
Loading…
Reference in New Issue
Block a user