patches for easier mirroring, to eliminate a special copy, to make www.freebsd.org/security a full copy of security.freebsd.org and be eventually be the same. For now files are just sitting there. The symlinks are missing. Discussed on: www (repository location) Discussed with: simon (so)
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			643 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			643 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| Index: sys/net/if.c
 | |
| ===================================================================
 | |
| RCS file: /home/ncvs/src/sys/net/if.c,v
 | |
| retrieving revision 1.225
 | |
| diff -u -p -r1.225 if.c
 | |
| --- sys/net/if.c	20 Mar 2005 14:31:45 -0000	1.225
 | |
| +++ sys/net/if.c	14 Apr 2005 22:06:17 -0000
 | |
| @@ -1596,6 +1596,12 @@ again:
 | |
|  	TAILQ_FOREACH(ifp, &ifnet, if_link) {
 | |
|  		int addrs;
 | |
|  
 | |
| +		/*
 | |
| +		 * Zero the ifr_name buffer to make sure we don't
 | |
| +		 * disclose the contents of the stack.
 | |
| +		 */
 | |
| +		memset(ifr.ifr_name, 0, sizeof(ifr.ifr_name));
 | |
| +
 | |
|  		if (strlcpy(ifr.ifr_name, ifp->if_xname, sizeof(ifr.ifr_name))
 | |
|  		    >= sizeof(ifr.ifr_name))
 | |
|  			return (ENAMETOOLONG);
 |