diff options
author | Andriy Gapon <avg@FreeBSD.org> | 2013-07-09 09:03:01 +0000 |
---|---|---|
committer | Andriy Gapon <avg@FreeBSD.org> | 2013-07-09 09:03:01 +0000 |
commit | a01669ea96661a26898b918e4c4f7339a7daf6c4 (patch) | |
tree | 703e21340bd3aa663c2dc52dab5bdc89383b8f4e /sys/security/audit/audit.c | |
parent | d6fc869ebdcb33da81bdfc501d962bc255921778 (diff) |
Notes
Diffstat (limited to 'sys/security/audit/audit.c')
-rw-r--r-- | sys/security/audit/audit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/security/audit/audit.c b/sys/security/audit/audit.c index cb3406d372571..f2a01dd242224 100644 --- a/sys/security/audit/audit.c +++ b/sys/security/audit/audit.c @@ -701,6 +701,8 @@ audit_proc_coredump(struct thread *td, char *path, int errcode) * (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); |