svn commit: r195216 - user/kmacy/head_ppacket/sys/net
Kip Macy
kmacy at FreeBSD.org
Tue Jun 30 22:48:29 UTC 2009
Author: kmacy
Date: Tue Jun 30 22:48:28 2009
New Revision: 195216
URL: http://svn.freebsd.org/changeset/base/195216
Log:
fix type and add reference to route being returned
Modified:
user/kmacy/head_ppacket/sys/net/route.c
Modified: user/kmacy/head_ppacket/sys/net/route.c
==============================================================================
--- user/kmacy/head_ppacket/sys/net/route.c Tue Jun 30 22:31:50 2009 (r195215)
+++ user/kmacy/head_ppacket/sys/net/route.c Tue Jun 30 22:48:28 2009 (r195216)
@@ -987,9 +987,12 @@ rn_mpath_update(int req, struct rt_addri
(rt->rt_gateway->sa_len != gateway->sa_len ||
memcmp(rt->rt_gateway, gateway, gateway->sa_len)))
error = ESRCH;
- else
- ret_nrt = rt;
- goto done;
+ else {
+ *ret_nrt = rt;
+ RT_ADDREF(rt);
+ goto done;
+ }
+
}
/*
* use the normal delete code to remove
More information about the svn-src-user
mailing list