svn commit: r302904 - head/usr.bin/netstat

Michael Tuexen tuexen at FreeBSD.org
Fri Jul 15 15:55:37 UTC 2016


Author: tuexen
Date: Fri Jul 15 15:55:36 2016
New Revision: 302904
URL: https://svnweb.freebsd.org/changeset/base/302904

Log:
  Fix a bug which results in a core dump when running netstat with
  the -W option and having a listening SCTP socket.
  The bug was introduced in r279122 when adding support for libxo.
  
  MFC after:	3 days

Modified:
  head/usr.bin/netstat/sctp.c

Modified: head/usr.bin/netstat/sctp.c
==============================================================================
--- head/usr.bin/netstat/sctp.c	Fri Jul 15 15:37:54 2016	(r302903)
+++ head/usr.bin/netstat/sctp.c	Fri Jul 15 15:55:36 2016	(r302904)
@@ -529,7 +529,7 @@ retry:
 					    "{:state/CLOSED}", " ");
 				} else {
 					xo_emit("{P:/%-45.45s} "
-					    "{:state:LISTEN}", " ");
+					    "{:state/LISTEN}", " ");
 				}
 			} else {
 				if (process_closed) {


More information about the svn-src-all mailing list