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:
parent
12e79a9bbc
commit
81efe39deb
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user