summaryrefslogtreecommitdiffstats
path: root/sys/net/route.c
diff options
context:
space:
mode:
authormelifaro <melifaro@FreeBSD.org>2013-05-18 07:10:22 +0000
committermelifaro <melifaro@FreeBSD.org>2013-05-18 07:10:22 +0000
commit967c651cd74bade845d7b05e653515a8ad197a8a (patch)
treeaa94bf69f3f777a0a1cf2c854be63e6dc9dd30ef /sys/net/route.c
parentc987c2e1e2f890213c17b74c869ded5ca392d53b (diff)
downloadFreeBSD-src-967c651cd74bade845d7b05e653515a8ad197a8a.zip
FreeBSD-src-967c651cd74bade845d7b05e653515a8ad197a8a.tar.gz
Fix rte leak introduced in r248070.
MFC after: 2 weeks
Diffstat (limited to 'sys/net/route.c')
-rw-r--r--sys/net/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/route.c b/sys/net/route.c
index 3ffacca..9b9835f 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -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 |
OpenPOWER on IntegriCloud