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

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
......@@ -3649,7 +3649,8 @@ static int sctp_setsockopt_auth_key(struct sock *sk,
}
out:
kzfree(authkey);
memzero_explicit(authkey, optlen);
kfree(authkey);
return ret;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment