X-Git-Url: http://www.wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_omac.c;fp=gost_omac.c;h=af6eb2a9e9e6e9cf2260754db5c7b147b2c912d8;hb=636dd0c1f36872f0abcb4f8a465e837929ed19d1;hp=c4e81113d348039f687ec6829ff7a7c3e84bfad1;hpb=ae390d45207aadb69eb96d8c11c1ee888f70815f;p=openssl-gost%2Fengine.git diff --git a/gost_omac.c b/gost_omac.c index c4e8111..af6eb2a 100644 --- a/gost_omac.c +++ b/gost_omac.c @@ -91,7 +91,7 @@ int omac_imit_copy(EVP_MD_CTX *to, const EVP_MD_CTX *from) } if (c_to->cmac_ctx == c_from->cmac_ctx) { - return 1; + c_to->cmac_ctx = CMAC_CTX_new(); } return CMAC_CTX_copy(c_to->cmac_ctx, c_from->cmac_ctx); }