Update gmapi_skf_ec.c

This commit is contained in:
Simon
2018-11-24 20:05:13 +08:00
committed by GitHub
parent 49987bfa9f
commit 40b6623427

View File

@@ -621,6 +621,8 @@ int i2d_ECCCIPHERBLOB(ECCCIPHERBLOB *a, unsigned char **pp)
}
if ((ret = i2d_SM2CiphertextValue(cv, pp)) <= 0) {
GMAPIerr(GMAPI_F_I2D_SM2CIPHERTEXTVALUE, GMAPI_R_INVALID_SKF_CIPHERTEXT);
return 0;
}
SM2CiphertextValue_free(cv);