return CMD_WARNING if osmo_ss7_xua_server_create() fails

Change-Id: I12bbfd48e16166c0f508ccbf2ed4fa786e786082
Related: SYS#5424
This commit is contained in:
Vadim Yanitskiy 2024-02-10 02:53:29 +07:00
parent 4120e0d2fc
commit 5e80ca8083
1 changed files with 1 additions and 1 deletions

View File

@ -491,7 +491,7 @@ DEFUN_ATTR(cs7_xua, cs7_xua_cmd,
if (!xs) {
xs = osmo_ss7_xua_server_create(inst, proto, port, NULL);
if (!xs)
return CMD_SUCCESS;
return CMD_WARNING;
/* Drop first dummy address created automatically by _create(): */
osmo_ss7_xua_server_set_local_hosts(xs, NULL, 0);
}