svn commit: r253388 - stable/9/sys/security/audit

Andriy Gapon avg at FreeBSD.org
Tue Jul 16 11:15:06 UTC 2013


Author: avg
Date: Tue Jul 16 11:15:05 2013
New Revision: 253388
URL: http://svnweb.freebsd.org/changeset/base/253388

Log:
  MFC r253078: audit_proc_coredump: check return value of audit_new
  
  Approved by:	re (kib)

Modified:
  stable/9/sys/security/audit/audit.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/security/audit/audit.c
==============================================================================
--- stable/9/sys/security/audit/audit.c	Tue Jul 16 10:43:44 2013	(r253387)
+++ stable/9/sys/security/audit/audit.c	Tue Jul 16 11:15:05 2013	(r253388)
@@ -688,6 +688,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);


More information about the svn-src-stable-9 mailing list