Message ID | 1458838348-27272-1-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/crypto/algif_skcipher.c b/crypto/algif_skcipher.c index e98f2b8..75c2d72 100644 --- a/crypto/algif_skcipher.c +++ b/crypto/algif_skcipher.c @@ -757,7 +757,7 @@ static int skcipher_accept_parent(void *private, struct sock *sk) { struct skcipher_tfm *tfm = private; - if (!tfm->has_key) + if (!tfm->has_key && crypto_ablkcipher_has_setkey(tfm->skcipher)) return -ENOKEY; return skcipher_accept_parent_common(private, sk);