|
@@ -441,7 +441,7 @@ nomem:
|
|
static int do_chtls_getsockopt(struct sock *sk, char __user *optval,
|
|
static int do_chtls_getsockopt(struct sock *sk, char __user *optval,
|
|
int __user *optlen)
|
|
int __user *optlen)
|
|
{
|
|
{
|
|
- struct tls_crypto_info crypto_info;
|
|
|
|
|
|
+ struct tls_crypto_info crypto_info = { 0 };
|
|
|
|
|
|
crypto_info.version = TLS_1_2_VERSION;
|
|
crypto_info.version = TLS_1_2_VERSION;
|
|
if (copy_to_user(optval, &crypto_info, sizeof(struct tls_crypto_info)))
|
|
if (copy_to_user(optval, &crypto_info, sizeof(struct tls_crypto_info)))
|