diff options
Diffstat (limited to 'src/sim.c')
-rw-r--r-- | src/sim.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3201,7 +3201,7 @@ static void sim_pin_query_cb(const struct ofono_error *error, DBusConnection *conn = ofono_dbus_get_connection(); const char *path = __ofono_atom_get_path(sim->atom); struct cached_pin *cpins = pin_cache_lookup(sim->iccid); - const char *pin_name = sim_passwd_name(pin_type); + const char *pin_name; char **locked_pins; gboolean lock_changed; @@ -3212,6 +3212,8 @@ static void sim_pin_query_cb(const struct ofono_error *error, return; } + pin_name = sim_passwd_name(pin_type); + if (sim->pin_type != pin_type) { sim->pin_type = pin_type; |