[comp.bugs.4bsd] Bug in netname routine in ucb/netstat/route.c

epg@cwi.nl (Ed Gronke) (07/30/87)

Description:
	If the netname routine is passed a mask of 0 then it
	checks an unitialized register to see which mask to
	use.
Repeat-By:
	netstat -r couldn't find network 127 (loopback-net) though it was
	in /etc/networks, though netstat -i did.
Fix:
	Set the register.
------- route.c -------
214c214
< 	in.s_addr = ntohl(in.s_addr);
---
> 	i = in.s_addr = ntohl(in.s_addr);