xrdp: get port from configfile in access_control()

This fixes #894
master
Oscar Salvador 7 years ago committed by metalefty
parent ced3a4817f
commit be23682f90

@ -1471,11 +1471,13 @@ access_control(char *username, char *password, char *srv)
unsigned long size;
int index;
int socket = g_tcp_socket();
char port[8];
if (socket != -1)
{
xrdp_mm_get_sesman_port(port, sizeof(port));
/* we use a blocking socket here */
reply = g_tcp_connect(socket, srv, "3350");
reply = g_tcp_connect(socket, srv, port);
if (reply == 0)
{

Loading…
Cancel
Save