mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
Check correct allocation assignment. Thanks to R.A. for the report on ZD-5154
This commit is contained in:
@@ -198,7 +198,7 @@ int wc_PBKDF2(byte* output, const byte* passwd, int pLen, const byte* salt,
|
||||
if (buffer == NULL)
|
||||
return MEMORY_E;
|
||||
hmac = (Hmac*)XMALLOC(sizeof(Hmac), NULL, DYNAMIC_TYPE_HMAC);
|
||||
if (buffer == NULL)
|
||||
if (hmac == NULL)
|
||||
return MEMORY_E;
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user