diff --git a/wolfcrypt/src/random.c b/wolfcrypt/src/random.c index 21d46ba1ba..7141c97ad9 100644 --- a/wolfcrypt/src/random.c +++ b/wolfcrypt/src/random.c @@ -2033,6 +2033,7 @@ int wc_FreeRng(WC_RNG* rng) #ifndef USE_WINDOWS_API if(rng->seed.fd != 0 && rng->seed.fd != -1) { close(rng->seed.fd); + rng->seed.fd = -1; } #endif