diff options
author | matt335672 <30179339+matt335672@users.noreply.github.com> | 2022-04-20 11:40:36 +0300 |
---|---|---|
committer | matt335672 <30179339+matt335672@users.noreply.github.com> | 2022-04-20 11:40:36 +0300 |
commit | 902c95164892587728725f7b5cc8af795ef8acb0 (patch) | |
tree | c43b717266505d119e8a5e394e6a36a926ce93a0 /xup | |
parent | 829106d7934e4894f390809b1067d14e160772e8 (diff) |
Fix regression introduced with UDS
Diffstat (limited to 'xup')
-rw-r--r-- | xup/xup.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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); |