Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Apr 1995 19:55:27 +0700
From:      "Nickolay N. Dudorov" <nnd@gw.itfs.nsk.su>
To:        current@FreeBSD.org
Subject:   (Small) error in -current
Message-ID:  <199504091255.TAA04494@gw.itfs.nsk.su>

next in thread | raw e-mail | index | archive | help

	There is an error in current (CTM#498).
Here is my (trivial) fix for it:

	N.Dudorov
===============================================================

--- /usr/src/usr.bin/netstat/inet.c.OLD	Sun Apr  9 20:22:19 1995
+++ /usr/src/usr.bin/netstat/inet.c	Sun Apr  9 20:22:19 1995
@@ -99,7 +99,7 @@
 	kread(off, (char *)&head, sizeof (struct inpcbhead));
 	prev = (struct inpcb *)off;
 
-	for (next = head.lh_first; next != NULL; next = inpcb.list.le_next) {
+	for (next = head.lh_first; next != NULL; next = inpcb.inp_list.le_next) {
 		kread((u_long)next, (char *)&inpcb, sizeof (inpcb));
 		if (!aflag &&
 		  inet_lnaof(inpcb.inp_laddr) == INADDR_ANY) {




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