mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
kdf: fix clang uninitialized.Assign
commit f1ce0cc95d
tigger static analyzer warnings
about unitialized assign.
This commit is contained in:
@ -150,6 +150,11 @@ int wc_PRF(byte* result, word32 resLen, const byte* secret,
|
|||||||
if (lastLen)
|
if (lastLen)
|
||||||
times += 1;
|
times += 1;
|
||||||
|
|
||||||
|
/* times == 0 iif resLen == 0, but times == 0 abides clang static analyzer
|
||||||
|
while resLen == 0 doesn't */
|
||||||
|
if (times == 0)
|
||||||
|
return BAD_FUNC_ARG;
|
||||||
|
|
||||||
lastTime = times - 1;
|
lastTime = times - 1;
|
||||||
|
|
||||||
ret = wc_HmacInit(hmac, heap, devId);
|
ret = wc_HmacInit(hmac, heap, devId);
|
||||||
|
Reference in New Issue
Block a user