Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2007 05:42:18 GMT
From:      Kip Macy <kmacy@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 130670 for review
Message-ID:  <200712120542.lBC5gIl3018647@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=130670

Change 130670 by kmacy@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712120542.lBC5gIl3018647>