mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[winpr,ssl] check winpr_InitializeSSL return
This commit is contained in:
@@ -1397,7 +1397,9 @@ static BOOL setup_string(wArrayList* list)
|
||||
|
||||
rdpAssistanceFile* freerdp_assistance_file_new(void)
|
||||
{
|
||||
winpr_InitializeSSL(WINPR_SSL_INIT_DEFAULT);
|
||||
if (!winpr_InitializeSSL(WINPR_SSL_INIT_DEFAULT))
|
||||
return nullptr;
|
||||
|
||||
rdpAssistanceFile* file = calloc(1, sizeof(rdpAssistanceFile));
|
||||
if (!file)
|
||||
return nullptr;
|
||||
|
||||
@@ -286,11 +286,11 @@ static BOOL test_msrsc_incident_file_type2(wLog* log)
|
||||
|
||||
int TestCommonAssistance(int argc, char* argv[])
|
||||
{
|
||||
wLog* log = nullptr;
|
||||
WINPR_UNUSED(argc);
|
||||
WINPR_UNUSED(argv);
|
||||
log = WLog_Get(__func__);
|
||||
winpr_InitializeSSL(WINPR_SSL_INIT_DEFAULT);
|
||||
wLog* log = WLog_Get(__func__);
|
||||
if (!winpr_InitializeSSL(WINPR_SSL_INIT_DEFAULT))
|
||||
return -1;
|
||||
|
||||
for (size_t x = 0; x < ARRAYSIZE(fail_tests); x++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user