svn commit: r253387 - stable/8/sys/security/audit
Andriy Gapon
avg at FreeBSD.org
Tue Jul 16 10:43:45 UTC 2013
Author: avg
Date: Tue Jul 16 10:43:44 2013
New Revision: 253387
URL: http://svnweb.freebsd.org/changeset/base/253387
Log:
MFC r253078: audit_proc_coredump: check return value of audit_new
Modified:
stable/8/sys/security/audit/audit.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/security/ (props changed)
Modified: stable/8/sys/security/audit/audit.c
==============================================================================
--- stable/8/sys/security/audit/audit.c Tue Jul 16 09:40:59 2013 (r253386)
+++ stable/8/sys/security/audit/audit.c Tue Jul 16 10:43:44 2013 (r253387)
@@ -686,6 +686,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
mailing list