From 2c66b5ee16cb1a5f0dbadaf9bbdde65683196086 Mon Sep 17 00:00:00 2001 From: "Maciej S. Szmigiero" Date: Sat, 10 May 2025 18:45:20 +0200 Subject: [PATCH] base-sim: Setup auth provider and its cancellable Otherwise we'll get a NULL pointer dereference segfault in mm_auth when sending SIM PIN. Looks like MMBaseSim was accidentally missed during the conversion done by the commit in the Fixes tag below. Fixes: ef5cee3ab578 ("auth-provider: move auth provider logic into each class") Signed-off-by: Maciej S. Szmigiero --- src/mm-base-sim.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mm-base-sim.c b/src/mm-base-sim.c index 9bffe872..1498fb0f 100644 --- a/src/mm-base-sim.c +++ b/src/mm-base-sim.c @@ -3041,6 +3041,10 @@ mm_base_sim_init (MMBaseSim *self) /* Each SIM is given a unique id to build its own DBus path */ self->priv->dbus_id = id++; + + /* Setup authorization provider */ + self->priv->authp = mm_auth_provider_get (); + self->priv->authp_cancellable = g_cancellable_new (); } static void