X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=crypto%2Fccm.c;h=2002ca74c5cface0fc045111491adfa08ad231c5;hb=971afd5250ac1134b2a6ab700e4a30b46a9437c6;hp=c36d654cf56a0f08ef9ef4e4cd42eaa85047a6cd;hpb=8d98f2246d7c622198ae0b8ca66f1c82b8a25377;p=pandora-kernel.git diff --git a/crypto/ccm.c b/crypto/ccm.c index c36d654cf56a..2002ca74c5cf 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;