From: Dmitry Belyavskiy Date: Tue, 4 Jul 2017 10:57:07 +0000 (+0300) Subject: Fix X-Git-Tag: v1.1.0.2~5 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=d894d6b45e19ed61105afd7cad47ddaadd0ba669;p=openssl-gost%2Fengine.git Fix --- diff --git a/gost12sum.c b/gost12sum.c index e766bac..4936d7e 100644 --- a/gost12sum.c +++ b/gost12sum.c @@ -214,13 +214,12 @@ int hash_file(gost_hash_ctx * ctx, char *filename, char *sum, int mode) int hash_stream(gost_hash_ctx * ctx, int fd, char *sum) { unsigned char buffer[BUF_SIZE]; - unsigned char reverted_buffer[BUF_SIZE]; ssize_t bytes; size_t i; start_hash12(ctx); while ((bytes = read(fd, buffer, BUF_SIZE)) > 0) { - hash12_block(ctx, reverted_buffer, bytes); + hash12_block(ctx, buffer, bytes); } if (bytes < 0) { return 0;