dh_test(): missed a spot in last commit.

This commit is contained in:
Daniel Pouzzner
2020-08-27 00:39:33 -05:00
parent ca1a991de5
commit 2ee218761e

View File

@ -14705,11 +14705,13 @@ static int dh_test(void)
}
#if !defined(NO_ASN) && !defined(NO_FILESYSTEM)
file = XFOPEN(dhKeyFile, "rb");
if (!file)
return -7950;
bytes = (word32)XFREAD(tmp, 1, DH_TEST_TMP_SIZE, file);
XFCLOSE(file);
{
XFILE file = XFOPEN(dhKeyFile, "rb");
if (!file)
return -7950;
bytes = (word32)XFREAD(tmp, 1, DH_TEST_TMP_SIZE, file);
XFCLOSE(file);
}
idx = 0;
ret = wc_DhKeyDecode(tmp, &idx, &key, bytes);