mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
In wc_PKCS12_PBKDF_ex, break out of outer loop on error
This commit is contained in:
@@ -501,6 +501,8 @@ int wc_PKCS12_PBKDF_ex(byte* output, const byte* passwd, int passLen,
|
|||||||
if (ret < 0) break;
|
if (ret < 0) break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ret < 0) break;
|
||||||
|
|
||||||
currentLen = min(kLen, (int)u);
|
currentLen = min(kLen, (int)u);
|
||||||
XMEMCPY(output, Ai, currentLen);
|
XMEMCPY(output, Ai, currentLen);
|
||||||
output += currentLen;
|
output += currentLen;
|
||||||
|
Reference in New Issue
Block a user