Review at

SS7: return error on stream opening error

Previously we've just logged error but continued as is.
Let's treat it as a error to let upper layers decide on it.

Change-Id: I2ce55983b255b0b50fd5142d6ddf188dc8ee20b9
M src/osmo_ss7.c
1 file changed, 1 insertion(+), 0 deletions(-)

  git pull ssh:// refs/changes/07/6407/1

diff --git a/src/osmo_ss7.c b/src/osmo_ss7.c
index 7f82f6e..bf5cf1d 100644
--- a/src/osmo_ss7.c
+++ b/src/osmo_ss7.c
@@ -1251,6 +1251,7 @@
                if (rc < 0) {
                        LOGSS7(asp->inst, LOGL_ERROR, "Unable to open stream"
                                " client for ASP %s\n", asp->;
+                       return -ENOSTR;
                /* TODO: make this configurable and not implicit */
                role = XUA_ASPFSM_ROLE_ASP;

To view, visit
To unsubscribe, visit

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2ce55983b255b0b50fd5142d6ddf188dc8ee20b9
Gerrit-PatchSet: 1
Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Owner: Max <>

Reply via email to