Change in libosmocore[master]: gprs_ns2_fr: free_bind(): first do the NULL check before using members

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
Wed Feb 3 10:31:08 UTC 2021


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


Change subject: gprs_ns2_fr: free_bind(): first do the NULL check before using members
......................................................................

gprs_ns2_fr: free_bind(): first do the NULL check before using members

Change-Id: I80f72ada15b477d735bf5aee36a5d67e80eb0136
---
M src/gb/gprs_ns2_fr.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/45/22645/1

diff --git a/src/gb/gprs_ns2_fr.c b/src/gb/gprs_ns2_fr.c
index 3af20b4..fcbafec 100644
--- a/src/gb/gprs_ns2_fr.c
+++ b/src/gb/gprs_ns2_fr.c
@@ -161,10 +161,10 @@
 	struct priv_bind *priv;
 	struct msgb *msg, *msg2;
 
-	OSMO_ASSERT(gprs_ns2_is_fr_bind(bind));
 	if (!bind)
 		return;
 
+	OSMO_ASSERT(gprs_ns2_is_fr_bind(bind));
 	priv = bind->priv;
 
 	OSMO_ASSERT(llist_empty(&bind->nsvc));

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

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I80f72ada15b477d735bf5aee36a5d67e80eb0136
Gerrit-Change-Number: 22645
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/20210203/17ef651a/attachment.htm>


More information about the gerrit-log mailing list