Change in libosmocore[master]: gprs_ns_instantiate(): propagate errors from gprs_sns_init() to caller

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Sun Dec 1 12:39:13 UTC 2019


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/16368 )


Change subject: gprs_ns_instantiate(): propagate errors from gprs_sns_init() to caller
......................................................................

gprs_ns_instantiate(): propagate errors from gprs_sns_init() to caller

Change-Id: I71f347a2f0376716e5f83d33a7931eb8a99aad77
---
M src/gb/gprs_ns.c
1 file changed, 3 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/68/16368/1

diff --git a/src/gb/gprs_ns.c b/src/gb/gprs_ns.c
index c77ebb3..5e6da17 100644
--- a/src/gb/gprs_ns.c
+++ b/src/gb/gprs_ns.c
@@ -1887,7 +1887,9 @@
 	struct gprs_ns_inst *nsi = talloc_zero(ctx, struct gprs_ns_inst);
 
 	if (!gprs_sns_fsm_registered) {
-		gprs_sns_init();
+		rc = gprs_sns_init();
+		if (rc < 0)
+			return NULL;
 		gprs_sns_fsm_registered = true;
 	}
 

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/16368
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I71f347a2f0376716e5f83d33a7931eb8a99aad77
Gerrit-Change-Number: 16368
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191201/50964631/attachment.htm>


More information about the gerrit-log mailing list