Update gmapi_skf_ec.c

This commit is contained in:
Simon
2018-11-24 20:34:02 +08:00
committed by GitHub
parent 339c2a0bb2
commit d4768d2594

View File

@@ -620,10 +620,7 @@ int i2d_ECCCIPHERBLOB(ECCCIPHERBLOB *a, unsigned char **pp)
return 0;
}
if ((ret = i2d_SM2CiphertextValue(cv, pp)) <= 0) {
return 0;
}
ret = i2d_SM2CiphertextValue(cv, pp));
SM2CiphertextValue_free(cv);
return ret;
}