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:
Родитель
f2906aa863
Коммит
5ee6cfdd11
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче