diff options
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/ccm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/ccm.c b/crypto/ccm.c index 499c91717d9..ed009b77e67 100644 --- a/crypto/ccm.c +++ b/crypto/ccm.c @@ -271,7 +271,8 @@ static int crypto_ccm_auth(struct aead_request *req, struct scatterlist *plain, } /* compute plaintext into mac */ - get_data_to_compute(cipher, pctx, plain, cryptlen); + if (cryptlen) + get_data_to_compute(cipher, pctx, plain, cryptlen); out: return err; |