Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > c83e50267511ecff72557ff0fe13ba7b > files > 6

bootparamd-0.17-26.el5_7.1.src.rpm

diff -uNr netkit-bootparamd-0.17-pre20000412/rpc.bootparamd/rpc.bootparamd.c netkit-bootparamd-0.17-pre20000412.new/rpc.bootparamd/rpc.bootparamd.c
--- netkit-bootparamd-0.17-pre20000412/rpc.bootparamd/rpc.bootparamd.c	2008-05-10 13:02:13.000000000 -0400
+++ netkit-bootparamd-0.17-pre20000412.new/rpc.bootparamd/rpc.bootparamd.c	2008-05-10 13:04:31.000000000 -0400
@@ -91,12 +91,9 @@
             memcpy(&caddr,&addr,sizeof(addr));
 	    route_addr.s_addr = get_default_route(caddr);
 	}
-	
-	if (res.router_address.address_type != IP_ADDR_TYPE) {
-	    res.router_address.address_type = IP_ADDR_TYPE;
-	    memcpy(&res.router_address.bp_address_u.ip_addr, &route_addr, 
-		   sizeof(route_addr));
-	}
+	res.router_address.address_type = IP_ADDR_TYPE;
+	memcpy(&res.router_address.bp_address_u.ip_addr, &route_addr, sizeof(route_addr));
+
 	if (debug) fprintf(stderr,
 			   "Returning %s   %s    %s\n", 
 			   res.client_name,