Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322608
b: refs/heads/master
c: 9b2f4cb
h: refs/heads/master
v: v3
  • Loading branch information
Herbert Xu committed Sep 11, 2012
1 parent 692b37a commit dc1818b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3b75a2c126c4b573553856e0fe08d1bb020ca8c3
refs/heads/master: 9b2f4cb65f7083cde86553cd56d6c2878e04932a
4 changes: 2 additions & 2 deletions trunk/crypto/authenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ static int crypto_authenc_genicv(struct aead_request *req, u8 *iv,
cryptlen += ivsize;
}

if (sg_is_last(assoc)) {
if (req->assoclen && sg_is_last(assoc)) {
authenc_ahash_fn = crypto_authenc_ahash;
sg_init_table(asg, 2);
sg_set_page(asg, sg_page(assoc), assoc->length, assoc->offset);
Expand Down Expand Up @@ -490,7 +490,7 @@ static int crypto_authenc_iverify(struct aead_request *req, u8 *iv,
cryptlen += ivsize;
}

if (sg_is_last(assoc)) {
if (req->assoclen && sg_is_last(assoc)) {
authenc_ahash_fn = crypto_authenc_ahash;
sg_init_table(asg, 2);
sg_set_page(asg, sg_page(assoc), assoc->length, assoc->offset);
Expand Down

0 comments on commit dc1818b

Please sign in to comment.