Message ID | 1458921667-28870-3-git-send-email-kamal@whence.com |
---|---|
State | New |
Headers | show |
diff --git a/crypto/algif_skcipher.c b/crypto/algif_skcipher.c index 6c0410e..b5d5a35 100644 --- a/crypto/algif_skcipher.c +++ b/crypto/algif_skcipher.c @@ -961,7 +961,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_nokey(private, sk);