summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/c2/audit.c
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-01-20 13:26:57 +0200
committerToomas Soome <tsoome@me.com>2019-04-23 22:57:31 +0300
commit0f48f68d9e0ad95b0edf718f68736cf3635a1f79 (patch)
tree0ef54b02371d4e7afc2320c98af680e2d0930310 /usr/src/uts/common/c2/audit.c
parenta8eee26afa7ddf0c604c989c598251014bdc6e6f (diff)
downloadillumos-joyent-0f48f68d9e0ad95b0edf718f68736cf3635a1f79.tar.gz
10758 c2audit: NULL pointer errors
Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/uts/common/c2/audit.c')
-rw-r--r--usr/src/uts/common/c2/audit.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/src/uts/common/c2/audit.c b/usr/src/uts/common/c2/audit.c
index 9084cd6d19..0553cca7b2 100644
--- a/usr/src/uts/common/c2/audit.c
+++ b/usr/src/uts/common/c2/audit.c
@@ -411,7 +411,7 @@ audit_symlink(struct pathname *pnp, struct pathname *sympath)
* the specified file/directory attr) should be audited or
* ignored.
*
- * returns: 1 - if audit policy and object attributes indicate that
+ * returns: 1 - if audit policy and object attributes indicate that
* file/directory is effectively public. read events for
* the file should not be audited.
* 0 - otherwise
@@ -526,7 +526,7 @@ audit_exit(int code, int what)
/*
* ROUTINE: AUDIT_CORE_START
* PURPOSE:
- * CALLBY: PSIG
+ * CALLBY: PSIG
* NOTE:
* TODO:
*/
@@ -928,7 +928,7 @@ audit_ipcget(int type, void *vp)
return;
switch (type) {
- case NULL:
+ case 0:
au_uwrite(au_to_ipc_perm((struct kipc_perm *)vp));
break;
case AT_IPC_MSG:
@@ -1298,7 +1298,7 @@ audit_enterprom(int flg)
else
au_write((caddr_t *)&(rp), au_to_return32(ECANCELED, 0));
- AUDIT_ASYNC_FINISH(rp, AUE_ENTERPROM, NULL, NULL);
+ AUDIT_ASYNC_FINISH(rp, AUE_ENTERPROM, 0, NULL);
}
@@ -1331,7 +1331,7 @@ audit_exitprom(int flg)
else
au_write((caddr_t *)&(rp), au_to_return32(ECANCELED, 0));
- AUDIT_ASYNC_FINISH(rp, AUE_EXITPROM, NULL, NULL);
+ AUDIT_ASYNC_FINISH(rp, AUE_EXITPROM, 0, NULL);
}
struct fcntla {