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:
committed by
Dan Williams
parent
c99c300ad5
commit
2c66b5ee16
@@ -3041,6 +3041,10 @@ mm_base_sim_init (MMBaseSim *self)
|
|||||||
|
|
||||||
/* Each SIM is given a unique id to build its own DBus path */
|
/* Each SIM is given a unique id to build its own DBus path */
|
||||||
self->priv->dbus_id = id++;
|
self->priv->dbus_id = id++;
|
||||||
|
|
||||||
|
/* Setup authorization provider */
|
||||||
|
self->priv->authp = mm_auth_provider_get ();
|
||||||
|
self->priv->authp_cancellable = g_cancellable_new ();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|||||||
Reference in New Issue
Block a user