Commit 89fae01e authored by Christoph Hellwig's avatar Christoph Hellwig Committed by David S. Miller
Browse files

sctp: switch sctp_setsockopt_auth_key to use memzero_explicit



Switch from kzfree to sctp_setsockopt_auth_key + kfree to prepare for
moving the kfree to common code.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3564ef44
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3649,7 +3649,8 @@ static int sctp_setsockopt_auth_key(struct sock *sk,
	}

out:
	kzfree(authkey);
	memzero_explicit(authkey, optlen);
	kfree(authkey);
	return ret;
}