fixeria has uploaded this change for review.

View Change

return CMD_WARNING if osmo_ss7_xua_server_create() fails

Change-Id: I12bbfd48e16166c0f508ccbf2ed4fa786e786082
Related: SYS#5424
---
M src/osmo_ss7_vty.c
1 file changed, 11 insertions(+), 1 deletion(-)

git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/68/35968/1
diff --git a/src/osmo_ss7_vty.c b/src/osmo_ss7_vty.c
index 1483ac0..486f070 100644
--- a/src/osmo_ss7_vty.c
+++ b/src/osmo_ss7_vty.c
@@ -491,7 +491,7 @@
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);
}

To view, visit change 35968. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I12bbfd48e16166c0f508ccbf2ed4fa786e786082
Gerrit-Change-Number: 35968
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de>
Gerrit-MessageType: newchange