Skip to content

Commit be821b7

Browse files
Yugendstevegrubb
authored andcommitted
correcting memcmp args in check_rule_mismatch function
1 parent 4e6f54d commit be821b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/auditctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ static int check_rule_mismatch(int lineno, const char *option)
390390
audit_rule_syscallbyname_data(&tmprule, ptr);
391391
ptr = strtok_r(NULL, ",", &saved);
392392
}
393-
if (memcmp(tmprule.mask, rule_new->mask, AUDIT_BITMASK_SIZE * sizeof(__u32)))
393+
if (memcmp(tmprule.mask, rule_new->mask, AUDIT_BITMASK_SIZE * sizeof(tmprule.mask[0])))
394394
rc = 1;
395395
free(tmp);
396396

0 commit comments

Comments
 (0)