[server,shadow] abort on invalid key/certificate

This commit is contained in:
Armin Novak 2023-03-07 08:23:30 +01:00 committed by Martin Fleisz
parent 689bf6daab
commit 00f8cd350b
1 changed files with 1 additions and 3 deletions

View File

@ -852,9 +852,7 @@ int shadow_server_init(rdpShadowServer* server)
if (status < 0)
goto fail;
status = shadow_server_init_certificate(server);
if (status < 0)
if (!shadow_server_init_certificate(server))
goto fail;
server->listener = freerdp_listener_new();