Fix rte leak introduced in r248070.

MFC after:	2 weeks
This commit is contained in:
Alexander V. Chernikov 2013-05-18 07:10:22 +00:00
parent 33da3daa40
commit d54455b0c9

View File

@ -1566,7 +1566,7 @@ rtinit1(struct ifaddr *ifa, int cmd, int flags, int fibnum)
info.rti_ifa = NULL;
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) {
info.rti_ifa = ifa;
info.rti_flags = flags | RTF_RNH_LOCKED |