From: Dmitry Belyavskiy Date: Wed, 19 Sep 2018 14:30:44 +0000 (+0300) Subject: Result check X-Git-Tag: v3.0.0~337 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;ds=sidebyside;h=ad49fa11916e86b4f28d561e288b44895787e240;p=openssl-gost%2Fengine.git Result check --- 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; }