Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139996
b: refs/heads/master
c: f4f6899
h: refs/heads/master
v: v3
  • Loading branch information
Yehuda Sadeh authored and Herbert Xu committed Mar 27, 2009
1 parent 84be81f commit 4cbaeed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3341323bb4c198f704cffbfdda37bcec1226ef7d
refs/heads/master: f4f689933c63e0fbfba62f2a80efb2b424b139ae
3 changes: 3 additions & 0 deletions trunk/crypto/shash.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ static int shash_update_unaligned(struct shash_desc *desc, const u8 *data,
u8 buf[shash_align_buffer_size(unaligned_len, alignmask)]
__attribute__ ((aligned));

if (unaligned_len > len)
unaligned_len = len;

memcpy(buf, data, unaligned_len);

return shash->update(desc, buf, unaligned_len) ?:
Expand Down

0 comments on commit 4cbaeed

Please sign in to comment.