From owner-svn-src-head@FreeBSD.ORG Sat Jan 10 12:39:13 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21277106573D; Sat, 10 Jan 2009 12:39:13 +0000 (UTC) (envelope-from ru@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0F0368FC1A; Sat, 10 Jan 2009 12:39:13 +0000 (UTC) (envelope-from ru@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n0ACdCCb097480; Sat, 10 Jan 2009 12:39:12 GMT (envelope-from ru@svn.freebsd.org) Received: (from ru@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n0ACdCDx097479; Sat, 10 Jan 2009 12:39:12 GMT (envelope-from ru@svn.freebsd.org) Message-Id: <200901101239.n0ACdCDx097479@svn.freebsd.org> From: Ruslan Ermilov Date: Sat, 10 Jan 2009 12:39:12 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r187018 - head/usr.bin/netstat X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Jan 2009 12:39:14 -0000 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