diff options
author | Maciej S. Szmigiero <mail@maciej.szmigiero.name> | 2025-05-10 18:45:20 +0200 |
---|---|---|
committer | Dan Williams <dan@ioncontrol.co> | 2025-05-11 16:16:45 -0500 |
commit | 2c66b5ee16cb1a5f0dbadaf9bbdde65683196086 (patch) | |
tree | 15bc941622ed018e5db5a6501caf385ee8a70fc3 /src | |
parent | c99c300ad5fa350d0d2269ffde868063d5fb92ce (diff) |
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 <mail@maciej.szmigiero.name>
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-base-sim.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |