aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2021-02-03 11:30:43 +0100
committerAlexander Couzens <lynxis@fe80.eu>2021-02-03 14:37:54 +0100
commit24d9e80911f455ffe515ee3405d4d0fcb815224b (patch)
tree2257b113e5bd52a6783854ebbd113e616a87bcf9 /src
parentc80a8749321640f5e046d984f0fac46e390ad4e2 (diff)
gprs_ns2_fr: free_bind(): first do the NULL check before using members
Diffstat (limited to 'src')
-rw-r--r--src/gb/gprs_ns2_fr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gb/gprs_ns2_fr.c b/src/gb/gprs_ns2_fr.c
index f1a55765..78abddc0 100644
--- a/src/gb/gprs_ns2_fr.c
+++ b/src/gb/gprs_ns2_fr.c
@@ -161,10 +161,10 @@ static void free_bind(struct gprs_ns2_vc_bind *bind)
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));