diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index 7bb490a7f..be2ac7aae 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -9999,6 +9999,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;