Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/xrdp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xup
diff options
context:
space:
mode:
authormatt335672 <30179339+matt335672@users.noreply.github.com>2022-04-20 11:40:36 +0300
committermatt335672 <30179339+matt335672@users.noreply.github.com>2022-04-20 11:40:36 +0300
commit902c95164892587728725f7b5cc8af795ef8acb0 (patch)
treec43b717266505d119e8a5e394e6a36a926ce93a0 /xup
parent829106d7934e4894f390809b1067d14e160772e8 (diff)
Fix regression introduced with UDS
Diffstat (limited to 'xup')
-rw-r--r--xup/xup.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/xup/xup.c b/xup/xup.c
index ca36efc7..4ca395b9 100644
--- a/xup/xup.c
+++ b/xup/xup.c
@@ -162,12 +162,6 @@ lib_mod_connect(struct mod *mod)
return 1;
}
- if (g_strcmp(mod->ip, "") == 0)
- {
- mod->server_msg(mod, "error - no ip set", 0);
- return 1;
- }
-
make_stream(s);
g_sprintf(con_port, "%s", mod->port);
@@ -183,6 +177,12 @@ lib_mod_connect(struct mod *mod)
{
socket_mode = TRANS_MODE_TCP;
LOG(LOG_LEVEL_INFO, "lib_mod_connect: connecting via TCP socket");
+ if (g_strcmp(mod->ip, "") == 0)
+ {
+ mod->server_msg(mod, "error - no ip set", 0);
+ free_stream(s);
+ return 1;
+ }
}
mod->trans = trans_create(socket_mode, 8 * 8192, 8192);