fix wc_EccPrivateKeyDecode when pub exists

This commit is contained in:
Chris Conlon
2017-06-14 14:49:52 -06:00
parent 6d5c257010
commit ff48d19727

View File

@ -10004,6 +10004,7 @@ int wc_EccPrivateKeyDecode(const byte* input, word32* inOutIdx, ecc_key* key,
if (pubSz < 2*(ECC_MAXSIZE+1)) {
XMEMCPY(pub, &input[*inOutIdx], pubSz);
*inOutIdx += length;
pubData = pub;
}
else
ret = BUFFER_E;