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: ef5cee3ab5 ("auth-provider: move auth provider logic into each class")
Signed-off-by: Maciej S. Szmigiero <mail@maciej.szmigiero.name>
This commit is contained in:
Maciej S. Szmigiero
2025-05-11 16:16:45 -05:00
committed by Dan Williams
parent c99c300ad5
commit 2c66b5ee16
+4
View File
@@ -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