mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-05-04 22:04:14 +02:00
Fix uninitialized variable, use WOLFSSL_DEBUG_PRINTF macro in Hash_DRBG_Generate to avoid undefined printf reference.
This commit is contained in:
@@ -631,9 +631,10 @@ static int Hash_DRBG_Generate(DRBG_internal* drbg, byte* out, word32 outSz)
|
||||
}
|
||||
|
||||
if (drbg->reseedCtr >= WC_RESEED_INTERVAL) {
|
||||
#if defined(DEBUG_WOLFSSL) || defined(DEBUG_DRBG_RESEEDS)
|
||||
printf("DRBG reseed triggered, reseedCtr == %lu",
|
||||
(unsigned long)drbg->reseedCtr);
|
||||
#if (defined(DEBUG_WOLFSSL) || defined(DEBUG_DRBG_RESEEDS)) && \
|
||||
defined(WOLFSSL_DEBUG_PRINTF)
|
||||
WOLFSSL_DEBUG_PRINTF("DRBG reseed triggered, reseedCtr == %lu",
|
||||
(unsigned long)drbg->reseedCtr);
|
||||
#endif
|
||||
return DRBG_NEED_RESEED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user