From owner-svn-src-head@FreeBSD.ORG Tue Jul 9 09:03:02 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 090A9EB9; Tue, 9 Jul 2013 09:03:02 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id F06F711EA; Tue, 9 Jul 2013 09:03:01 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r69931EP024185; Tue, 9 Jul 2013 09:03:01 GMT (envelope-from avg@svn.freebsd.org) Received: (from avg@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r69931Qq024184; Tue, 9 Jul 2013 09:03:01 GMT (envelope-from avg@svn.freebsd.org) Message-Id: <201307090903.r69931Qq024184@svn.freebsd.org> From: Andriy Gapon Date: Tue, 9 Jul 2013 09:03:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r253078 - head/sys/security/audit X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 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: Tue, 09 Jul 2013 09:03:02 -0000 Author: avg Date: Tue Jul 9 09:03:01 2013 New Revision: 253078 URL: http://svnweb.freebsd.org/changeset/base/253078 Log: audit_proc_coredump: check return value of audit_new audit_new may return NULL if audit is disabled or suspended. Sponsored by: HybridCluster MFC after: 7 days Modified: head/sys/security/audit/audit.c Modified: head/sys/security/audit/audit.c ============================================================================== --- head/sys/security/audit/audit.c Tue Jul 9 09:01:44 2013 (r253077) +++ head/sys/security/audit/audit.c Tue Jul 9 09:03:01 2013 (r253078) @@ -701,6 +701,8 @@ audit_proc_coredump(struct thread *td, c * (signal) tokens. */ ar = audit_new(AUE_CORE, td); + if (ar == NULL) + return; if (path != NULL) { pathp = &ar->k_ar.ar_arg_upath1; *pathp = malloc(MAXPATHLEN, M_AUDITPATH, M_WAITOK);