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
|
@ -1390,7 +1390,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
|
|||
str);
|
||||
} else {
|
||||
audit_log_format(ab, " data=");
|
||||
if (data_len > 0 && str[data_len - 1] == '\0')
|
||||
if (str[data_len - 1] == '\0')
|
||||
data_len--;
|
||||
audit_log_n_untrustedstring(ab, str, data_len);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue