add missing ret checks

This commit is contained in:
Jacob Barthelmeh
2021-03-16 14:50:02 +07:00
parent 160faa851c
commit 4a7434a56d

View File

@@ -5842,13 +5842,13 @@ static int _HMAC_K(byte* K, word32 KSz, byte* V, word32 VSz,
ret = wc_HmacUpdate(&hmac, oct, 1);
if (ret == 0)
wc_HmacUpdate(&hmac, x, xSz);
ret = wc_HmacUpdate(&hmac, x, xSz);
if (ret == 0)
wc_HmacUpdate(&hmac, h1, h1Sz);
ret = wc_HmacUpdate(&hmac, h1, h1Sz);
if (ret == 0)
wc_HmacFinal(&hmac, out);
ret = wc_HmacFinal(&hmac, out);
wc_HmacFree(&hmac);
return ret;