diff options
author | Edgar E. Iglesias <edgar.iglesias@gmail.com> | 2013-04-06 11:30:10 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2013-04-06 11:30:10 +0200 |
commit | e76c8b47fb4e813fc4d3b11c3e35ef12a69f794b (patch) | |
tree | e4f4a3fa37f27839fe52ba298fa2117b5c2e3f94 /sha3.c | |
parent | 2dfae9f33daefc7c1fcb39cf50420a087cd45d5c (diff) | |
download | nettle-e76c8b47fb4e813fc4d3b11c3e35ef12a69f794b.tar.gz |
Fix condition for when the block buffer is full.
Diffstat (limited to 'sha3.c')
-rw-r--r-- | sha3.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -61,7 +61,7 @@ _sha3_update (struct sha3_state *state, if (pos > 0) { unsigned left = block_size - pos; - if (length < pos) + if (length < left) { memcpy (block + pos, data, length); return pos + length; |