diff --git a/crypto/algif_hash.c b/crypto/algif_hash.c index 05e21b46443300e76a0663d37c4a3cb071254270..d19b09cdf284d93dc63820a7cfc648217b220a7d 100644 --- a/crypto/algif_hash.c +++ b/crypto/algif_hash.c @@ -214,7 +214,7 @@ static int hash_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, ahash_request_set_crypt(&ctx->req, NULL, ctx->result, 0); - if (!result) { + if (!result && !ctx->more) { err = af_alg_wait_for_completion( crypto_ahash_init(&ctx->req), &ctx->completion);