diff --git a/wolfcrypt/src/random.c b/wolfcrypt/src/random.c index 88e5adda63..7334bfecab 100644 --- a/wolfcrypt/src/random.c +++ b/wolfcrypt/src/random.c @@ -2040,6 +2040,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