Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jan 2009 12:39:12 +0000 (UTC)
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r187018 - head/usr.bin/netstat
Message-ID:  <200901101239.n0ACdCDx097479@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ru
Date: Sat Jan 10 12:39:12 2009
New Revision: 187018
URL: http://svn.freebsd.org/changeset/base/187018

Log:
  Fix crash with "netstat -m -N foo".
  
  PR:		bin/124724
  MFC after:	3 days

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

Modified: head/usr.bin/netstat/main.c
==============================================================================
--- head/usr.bin/netstat/main.c	Sat Jan 10 11:45:47 2009	(r187017)
+++ head/usr.bin/netstat/main.c	Sat Jan 10 12:39:12 2009	(r187018)
@@ -507,7 +507,7 @@ main(int argc, char *argv[])
 		exit(0);
 	}
 	if (mflag) {
-		if (memf != NULL) {
+		if (!live) {
 			if (kread(0, NULL, 0) == 0)
 				mbpr(kvmd, nl[N_MBSTAT].n_value);
 		} else



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