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) {
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to