X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;ds=sidebyside;f=crypto%2Feseqiv.c;h=3ca3b669d5d501ed491a1c70dc2694b30e9cb0e0;hb=03cece06c41431ab71affc540d587e61894d7572;hp=2a342c8e52b385b34f2602b0c8dfb4d465e9b573;hpb=33217379becdee25021cabb25032b3bf703d0e96;p=~andy%2Flinux diff --git a/crypto/eseqiv.c b/crypto/eseqiv.c index 2a342c8e52b..3ca3b669d5d 100644 --- a/crypto/eseqiv.c +++ b/crypto/eseqiv.c @@ -153,7 +153,8 @@ static int eseqiv_givencrypt(struct skcipher_givcrypt_request *req) if (err) goto out; - eseqiv_complete2(req); + if (giv != req->giv) + eseqiv_complete2(req); out: return err;