Change in libosmocore[master]: ns2: Fix assert when removing a bind listen

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

daniel gerrit-no-reply at lists.osmocom.org
Fri Jan 29 10:45:54 UTC 2021


daniel has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/22448 )

Change subject: ns2: Fix assert when removing a bind listen
......................................................................

ns2: Fix assert when removing a bind listen

Change-Id: I3edd1e838f7516d9224045710047419039aa0ec0
Fixes: OS#4977
---
M src/gb/gprs_ns2_vty.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  daniel: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/gb/gprs_ns2_vty.c b/src/gb/gprs_ns2_vty.c
index 1c40759..c2b9bd9 100644
--- a/src/gb/gprs_ns2_vty.c
+++ b/src/gb/gprs_ns2_vty.c
@@ -516,7 +516,7 @@
 	if (!bind)
 		return CMD_ERR_NOTHING_TODO;
 
-	OSMO_ASSERT(bind->ll != GPRS_NS2_LL_UDP);
+	OSMO_ASSERT(bind->ll == GPRS_NS2_LL_UDP);
 	bind->driver->free_bind(bind);
 	return CMD_SUCCESS;
 }

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I3edd1e838f7516d9224045710047419039aa0ec0
Gerrit-Change-Number: 22448
Gerrit-PatchSet: 3
Gerrit-Owner: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: lynxis lazus <lynxis at fe80.eu>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210129/b7422d8e/attachment.htm>


More information about the gerrit-log mailing list