summaryrefslogtreecommitdiff
path: root/des-compat.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2001-09-25 10:41:46 +0200
committerNiels Möller <nisse@lysator.liu.se>2001-09-25 10:41:46 +0200
commitaf9fb1cdf73e13624ddfad37df7b35af8ba18748 (patch)
tree823c5986f188334249dabe2d243a6df68e93ba6a /des-compat.c
parent6aa9a06442c45e799a62b605e8d441d86e46badd (diff)
downloadnettle-af9fb1cdf73e13624ddfad37df7b35af8ba18748.tar.gz
* des-compat.c (des_cbc_cksum): Bug fix, local variable was
declared in the middle of a block. Rev: src/nettle/des-compat.c:1.6
Diffstat (limited to 'des-compat.c')
-rw-r--r--des-compat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/des-compat.c b/des-compat.c
index e199a9eb..022bd6ab 100644
--- a/des-compat.c
+++ b/des-compat.c
@@ -76,9 +76,9 @@ des_cbc_cksum(des_cblock *src, des_cblock *dst,
* work, in particular what it should return, and if iv can be
* modified. */
uint8_t block[DES_BLOCK_SIZE];
- memcpy(block, *iv, DES_BLOCK_SIZE);
-
uint8_t *p;
+
+ memcpy(block, *iv, DES_BLOCK_SIZE);
assert(!(length % DES_BLOCK_SIZE));