winpr/ssl: Call the winpr_enable_fips function only once

The `winpr_enable_fips`	function is called twice from the `winpr_InitializeSSL`
function after commit 49936a7b. I believe this is a bug, which might lead to
some undesired behavior. Let's call that only once.

(cherry picked from commit 554952a0bc)
This commit is contained in:
Ondrej Holy 2021-11-16 16:22:55 +01:00 committed by akallabeth
parent 34ddfc5348
commit d6466ad0c4

View File

@ -306,7 +306,7 @@ static BOOL CALLBACK _winpr_openssl_initialize(PINIT_ONCE once, PVOID param, PVO
#endif
g_winpr_openssl_initialized_by_winpr = TRUE;
return winpr_enable_fips(flags);
return TRUE;
}
/* exported functions */