Change in libosmocore[master]: gprs_ns2: vty: fix removing a bind from a SNS

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/.

lynxis lazus gerrit-no-reply at lists.osmocom.org
Tue May 4 13:42:05 UTC 2021


lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/24121 )


Change subject: gprs_ns2: vty: fix removing a bind from a SNS
......................................................................

gprs_ns2: vty: fix removing a bind from a SNS

Return 0 after removing a bind. Otherwise the vty would return a
wrong error to the user.

Change-Id: I088c18abafc82ae7bd7b8c487ad9e9b448c42ba9
---
M src/gb/gprs_ns2_vty.c
1 file changed, 1 insertion(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/21/24121/1

diff --git a/src/gb/gprs_ns2_vty.c b/src/gb/gprs_ns2_vty.c
index b678db4..4c89e94 100644
--- a/src/gb/gprs_ns2_vty.c
+++ b/src/gb/gprs_ns2_vty.c
@@ -216,6 +216,7 @@
 		if (vnse_bind->vbind == vbind) {
 			llist_del(&vnse_bind->list);
 			talloc_free(vnse_bind);
+			return 0;
 		}
 	}
 

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I088c18abafc82ae7bd7b8c487ad9e9b448c42ba9
Gerrit-Change-Number: 24121
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210504/74e209cd/attachment.htm>


More information about the gerrit-log mailing list