diff options
Diffstat (limited to 'net/tls/tls_main.c')
-rw-r--r-- | net/tls/tls_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tls/tls_main.c b/net/tls/tls_main.c index a03130a47b85..60aff60e30ad 100644 --- a/net/tls/tls_main.c +++ b/net/tls/tls_main.c | |||
@@ -272,7 +272,7 @@ static int do_tls_getsockopt_tx(struct sock *sk, char __user *optval, | |||
272 | goto out; | 272 | goto out; |
273 | } | 273 | } |
274 | 274 | ||
275 | if (len == sizeof(crypto_info)) { | 275 | if (len == sizeof(*crypto_info)) { |
276 | if (copy_to_user(optval, crypto_info, sizeof(*crypto_info))) | 276 | if (copy_to_user(optval, crypto_info, sizeof(*crypto_info))) |
277 | rc = -EFAULT; | 277 | rc = -EFAULT; |
278 | goto out; | 278 | goto out; |