From: Todd C. Miller Date: Sat, 13 Aug 2011 16:35:11 +0000 (-0400) Subject: Add a NULL check in audit_success() and audit_failure() just to be X-Git-Tag: SUDO_1_7_7~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2d098fd2c8677a96affc2a9eee8058743958f19;p=sudo Add a NULL check in audit_success() and audit_failure() just to be on the safe side. --HG-- branch : 1.7 --- diff --git a/audit.c b/audit.c index 15ac8eea7..e750374e6 100644 --- a/audit.c +++ b/audit.c @@ -50,6 +50,9 @@ audit_success(exec_args) const char *exec_args[]; #endif { + if (exec_args == NULL) + return; + #ifdef HAVE_BSM_AUDIT bsm_audit_success(exec_args); #endif @@ -70,6 +73,9 @@ audit_failure(exec_args, fmt, va_alist) { va_list ap; + if (exec_args == NULL) + return; + #ifdef __STDC__ va_start(ap, fmt); #else