summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2008-04-24 12:23:31 +0000
committerrwatson <rwatson@FreeBSD.org>2008-04-24 12:23:31 +0000
commit71caf14a532b5a69a8d514232234abeef7a051ca (patch)
tree6ce14b925e8d67fd00b59651e45def804b21e532 /sys
parent9f2031da023ed595ea1534b042896a4d05803dc5 (diff)
downloadFreeBSD-src-71caf14a532b5a69a8d514232234abeef7a051ca.zip
FreeBSD-src-71caf14a532b5a69a8d514232234abeef7a051ca.tar.gz
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 <dgiagio at gmail dot com>
Diffstat (limited to 'sys')
-rw-r--r--sys/security/audit/audit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/audit/audit.h b/sys/security/audit/audit.h
index 08bebcd..e6e0cb7 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)
OpenPOWER on IntegriCloud