mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 16:34:18 +09:00
[winpr,ssl] check winpr_InitializeSSL return
This commit is contained in:
@@ -1479,7 +1479,9 @@ int main(int argc, char* argv[])
|
||||
}
|
||||
|
||||
WTSRegisterWtsApiFunctionTable(FreeRDP_InitWtsApi());
|
||||
winpr_InitializeSSL(WINPR_SSL_INIT_DEFAULT);
|
||||
if (!winpr_InitializeSSL(WINPR_SSL_INIT_DEFAULT))
|
||||
return -1;
|
||||
|
||||
instance = freerdp_listener_new();
|
||||
|
||||
if (!instance)
|
||||
|
||||
@@ -813,7 +813,8 @@ BOOL pf_server_start(proxyServer* server)
|
||||
WINPR_ASSERT(server);
|
||||
|
||||
WTSRegisterWtsApiFunctionTable(FreeRDP_InitWtsApi());
|
||||
winpr_InitializeSSL(WINPR_SSL_INIT_DEFAULT);
|
||||
if (!winpr_InitializeSSL(WINPR_SSL_INIT_DEFAULT))
|
||||
goto error;
|
||||
|
||||
if (WSAStartup(MAKEWORD(2, 2), &wsaData) != 0)
|
||||
goto error;
|
||||
@@ -853,7 +854,8 @@ BOOL pf_server_start_from_socket(proxyServer* server, int socket)
|
||||
WINPR_ASSERT(server);
|
||||
|
||||
WTSRegisterWtsApiFunctionTable(FreeRDP_InitWtsApi());
|
||||
winpr_InitializeSSL(WINPR_SSL_INIT_DEFAULT);
|
||||
if (!winpr_InitializeSSL(WINPR_SSL_INIT_DEFAULT))
|
||||
goto error;
|
||||
|
||||
if (WSAStartup(MAKEWORD(2, 2), &wsaData) != 0)
|
||||
goto error;
|
||||
|
||||
Reference in New Issue
Block a user