Commit a5cd1ab7 authored by Casey Schaufler's avatar Casey Schaufler
Browse files

Fix incorrect type in assignment of ipv6 port for audit



Remove inappropriate use of ntohs() and assign the
port value directly.

Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarCasey Schaufler <casey@schaufler-ca.com>
parent e783362e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2510,7 +2510,7 @@ static int smk_ipv6_check(struct smack_known *subject,
#ifdef CONFIG_AUDIT
	smk_ad_init_net(&ad, __func__, LSM_AUDIT_DATA_NET, &net);
	ad.a.u.net->family = PF_INET6;
	ad.a.u.net->dport = ntohs(address->sin6_port);
	ad.a.u.net->dport = address->sin6_port;
	if (act == SMK_RECEIVING)
		ad.a.u.net->v6info.saddr = address->sin6_addr;
	else