]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
* des-compat.c (des_cbc_cksum): Bug fix, local variable was
authorNiels Möller <nisse@lysator.liu.se>
Tue, 25 Sep 2001 08:41:46 +0000 (10:41 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 25 Sep 2001 08:41:46 +0000 (10:41 +0200)
declared in the middle of a block.

Rev: src/nettle/des-compat.c:1.6

des-compat.c

index e199a9eb6e3674738434e84aa32a11bffb131784..022bd6ab754627d10ae63f2850e9f31c30f7dc84 100644 (file)
@@ -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));