mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-27 08:43:56 +00:00
audit: remove redundant data_len check
data_len is already getting checked if it's less than 2 earlier in this function. Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
parent
f2906aa863
commit
5ee6cfdd11
1 changed files with 1 additions and 1 deletions
|
@ -1390,7 +1390,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
|
||||||
str);
|
str);
|
||||||
} else {
|
} else {
|
||||||
audit_log_format(ab, " data=");
|
audit_log_format(ab, " data=");
|
||||||
if (data_len > 0 && str[data_len - 1] == '\0')
|
if (str[data_len - 1] == '\0')
|
||||||
data_len--;
|
data_len--;
|
||||||
audit_log_n_untrustedstring(ab, str, data_len);
|
audit_log_n_untrustedstring(ab, str, data_len);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue