server/proxy: Remove unnecessary wrap for connection info

This commit is contained in:
kubistika 2019-05-12 21:25:36 +03:00
parent 2126024321
commit 20e503421e
2 changed files with 1 additions and 3 deletions

View File

@ -97,7 +97,7 @@ proxyData* pf_context_proxy_data_new()
return NULL;
}
pdata->info = pf_context_connection_info_new();
pdata->info = malloc(sizeof(connectionInfo));
if (pdata->info == NULL)
{

View File

@ -85,7 +85,5 @@ BOOL init_p_server_context(freerdp_peer* client);
rdpContext* p_client_context_create(rdpSettings* clientSettings, char* host, DWORD port);
proxyData* pf_context_proxy_data_new();
void pf_context_proxy_data_free(proxyData* pdata);
connectionInfo* pf_context_connection_info_new();
void pf_context_connection_info_free(connectionInfo* info);
#endif /* FREERDP_SERVER_PROXY_PFCONTEXT_H */