X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fsm2%2Fsm2_crypt.c;h=7e7be9d04a5cad37cd76cce664624771102b22e9;hp=a450146a7b369087ea28404ad7774338dbd652f8;hb=dceb99a5fb1b065debc0b3fe19481eff80843732;hpb=3d328a445c2ad0eff2e9e843c384711be58a7c2f diff --git a/crypto/sm2/sm2_crypt.c b/crypto/sm2/sm2_crypt.c index a450146a7b..7e7be9d04a 100644 --- a/crypto/sm2/sm2_crypt.c +++ b/crypto/sm2/sm2_crypt.c @@ -303,6 +303,7 @@ int SM2_decrypt(const EC_KEY *key, goto done; rc = 1; + *ptext_len = msg_len; done: