From: Niels Möller Date: Tue, 25 Sep 2001 08:41:46 +0000 (+0200) Subject: * des-compat.c (des_cbc_cksum): Bug fix, local variable was X-Git-Tag: nettle_1.0_release_20010925~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af9fb1cdf73e13624ddfad37df7b35af8ba18748;p=thirdparty%2Fnettle.git * 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 --- 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));