From 81efe39debd3f5208dffd2a9d666bc3669bc4aea Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Thu, 24 Apr 2008 12:23:31 +0000 Subject: [PATCH] Use logic or, not binary or, when deciding whether or not a system call exit requires entering the audit code. The result is much the same, but they mean different things. MFC afer: 3 days Submitted by: Diego Giagio --- sys/security/audit/audit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/security/audit/audit.h b/sys/security/audit/audit.h index 08bebcde8fb7..e6e0cb72c628 100644 --- a/sys/security/audit/audit.h +++ b/sys/security/audit/audit.h @@ -202,7 +202,7 @@ void audit_thread_free(struct thread *td); * possible that an audit record was begun before auditing was turned off. */ #define AUDIT_SYSCALL_EXIT(error, td) do { \ - if (audit_enabled | (td->td_ar != NULL)) \ + if (audit_enabled || (td->td_ar != NULL)) \ audit_syscall_exit(error, td); \ } while (0)