mirror of
https://github.com/opnsense/src.git
synced 2026-05-19 08:25:22 -04:00
login: use sizeof(audit_cond) consistently, NFC
The other three instances were already converted to use audit_cond, this
one was just changed from sizeof(long) -> sizeof(int).
(cherry picked from commit 7f4bb50176)
This commit is contained in:
parent
48e109cf31
commit
c8d19408fe
1 changed files with 1 additions and 1 deletions
|
|
@ -180,7 +180,7 @@ audit_logout(void)
|
|||
int au_cond;
|
||||
|
||||
/* If we are not auditing, don't cut an audit record; just return. */
|
||||
if (auditon(A_GETCOND, &au_cond, sizeof(int)) < 0) {
|
||||
if (auditon(A_GETCOND, &au_cond, sizeof(au_cond)) < 0) {
|
||||
if (errno == ENOSYS)
|
||||
return;
|
||||
errx(1, "could not determine audit condition");
|
||||
|
|
|
|||
Loading…
Reference in a new issue