]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/tls/tls_main.c
ipv4: initialize fib_trie prior to register_netdev_notifier call.
[karo-tx-linux.git] / net / tls / tls_main.c
index a03130a47b852cff3fddf174d9cf8ce921e3fe86..60aff60e30ad41380b58fd83b1b79ae5a876513e 100644 (file)
@@ -272,7 +272,7 @@ static int do_tls_getsockopt_tx(struct sock *sk, char __user *optval,
                goto out;
        }
 
-       if (len == sizeof(crypto_info)) {
+       if (len == sizeof(*crypto_info)) {
                if (copy_to_user(optval, crypto_info, sizeof(*crypto_info)))
                        rc = -EFAULT;
                goto out;