PERFORCE change 130670 for review

Kip Macy kmacy at FreeBSD.org
Tue Dec 11 21:42:20 PST 2007


http://perforce.freebsd.org/chv.cgi?CH=130670

Change 130670 by kmacy at kmacy:storage:toehead on 2007/12/12 05:41:51

	move rt = NULL up to make the intent of the code clearer

Affected files ...

.. //depot/projects/toehead/sys/net/route.c#3 edit

Differences ...

==== //depot/projects/toehead/sys/net/route.c#3 (text+ko) ====

@@ -363,7 +363,8 @@
 			 */
 		create:
 			rt0 = rt;
-			
+			rt = NULL;
+		
 			flags |=  RTF_GATEWAY | RTF_DYNAMIC;
 			bzero((caddr_t)&info, sizeof(info));
 			info.rti_info[RTAX_DST] = dst;
@@ -371,7 +372,6 @@
 			info.rti_info[RTAX_NETMASK] = netmask;
 			info.rti_ifa = ifa;
 			info.rti_flags = flags;
-			rt = NULL;
 			error = rtrequest1(RTM_ADD, &info, &rt);
 			if (rt != NULL) {
 				RT_LOCK(rt);


More information about the p4-projects mailing list