return CMD_WARNING if osmo_ss7_xua_server_create() fails
Change-Id: I12bbfd48e16166c0f508ccbf2ed4fa786e786082 Related: SYS#5424
This commit is contained in:
parent
4120e0d2fc
commit
5e80ca8083
|
@ -491,7 +491,7 @@ DEFUN_ATTR(cs7_xua, cs7_xua_cmd,
|
||||||
if (!xs) {
|
if (!xs) {
|
||||||
xs = osmo_ss7_xua_server_create(inst, proto, port, NULL);
|
xs = osmo_ss7_xua_server_create(inst, proto, port, NULL);
|
||||||
if (!xs)
|
if (!xs)
|
||||||
return CMD_SUCCESS;
|
return CMD_WARNING;
|
||||||
/* Drop first dummy address created automatically by _create(): */
|
/* Drop first dummy address created automatically by _create(): */
|
||||||
osmo_ss7_xua_server_set_local_hosts(xs, NULL, 0);
|
osmo_ss7_xua_server_set_local_hosts(xs, NULL, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue