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>
This commit is contained in:
Robert Watson 2008-04-24 12:23:31 +00:00
parent 12e79a9bbc
commit 81efe39deb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=178461

View File

@ -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)