diff --git a/src/gb/gprs_ns2_fr.c b/src/gb/gprs_ns2_fr.c index 7b9450c3b..a7455d7c5 100644 --- a/src/gb/gprs_ns2_fr.c +++ b/src/gb/gprs_ns2_fr.c @@ -101,7 +101,8 @@ struct priv_vc { static void free_vc(struct gprs_ns2_vc *nsvc) { - OSMO_ASSERT(nsvc); + if (!nsvc) + return; if (!nsvc->priv) return; diff --git a/src/gb/gprs_ns2_udp.c b/src/gb/gprs_ns2_udp.c index 1037b1978..2a335c116 100644 --- a/src/gb/gprs_ns2_udp.c +++ b/src/gb/gprs_ns2_udp.c @@ -73,6 +73,9 @@ static void free_bind(struct gprs_ns2_vc_bind *bind) static void free_vc(struct gprs_ns2_vc *nsvc) { + if (!nsvc) + return; + if (!nsvc->priv) return;