remove dead code path

This commit is contained in:
Jacob Barthelmeh
2021-03-25 23:13:34 +07:00
parent fdb3221ea7
commit 1c3ba77bee

View File

@ -415,10 +415,10 @@ int wc_PKCS12_PBKDF_ex(byte* output, const byte* passwd, int passLen,
dLen = v;
sLen = v * ((saltLen + v - 1) / v);
if (passLen)
/* with passLen checked at the top of the function for >= 0 then passLen
* must be 1 or greater here and is always 'true' */
pLen = v * ((passLen + v - 1) / v);
else
pLen = 0;
iLen = sLen + pLen;
totalLen = dLen + sLen + pLen;