From ad49fa11916e86b4f28d561e288b44895787e240 Mon Sep 17 00:00:00 2001 From: Dmitry Belyavskiy Date: Wed, 19 Sep 2018 17:30:44 +0300 Subject: [PATCH] Result check --- gost_grasshopper_cipher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gost_grasshopper_cipher.c b/gost_grasshopper_cipher.c index ba72d79..21d5038 100644 --- a/gost_grasshopper_cipher.c +++ b/gost_grasshopper_cipher.c @@ -776,7 +776,7 @@ int gost_grasshopper_cipher_ctl(EVP_CIPHER_CTX *ctx, int type, int arg, c = &(ctr_ctx->c); if (gost_tlstree(NID_grasshopper_cbc, c->master_key.k.b, newkey, - (const unsigned char *)ptr)) { + (const unsigned char *)ptr) > 0) { gost_grasshopper_cipher_key(c, newkey); return 1; } -- 2.39.2