Message ID | 20240730091332.20031-2-d.grigorev@omp.ru (mailing list archive) |
---|---|
State | Accepted |
Commit | 91e7548b52b722999fd51a8d069410a848c1beba |
Headers | show |
Series | Fix use-after-free | expand |
diff --git a/src/cbs.c b/src/cbs.c index 246157b1..760fd860 100644 --- a/src/cbs.c +++ b/src/cbs.c @@ -593,7 +593,7 @@ static void cbs_unregister(struct ofono_atom *atom) cbs->settings = NULL; } - if (cbs->netreg_watch && cbs->netreg) { + if (cbs->netreg_watch) { if (cbs->location_watch) { __ofono_netreg_remove_status_watch(cbs->netreg, cbs->location_watch);