From 7de5e48df88a2c1ae633a595c35f7b2ec4182f8d Mon Sep 17 00:00:00 2001 From: Petteri Tikander Date: Thu, 21 Oct 2010 17:58:13 +0300 Subject: sim: check existence of imsi-code For instance: when handling sim_get_properties in PRE_SIM-state imsi is not received/stored. --- src/sim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sim.c b/src/sim.c index e5be8b69..1d294dc3 100644 --- a/src/sim.c +++ b/src/sim.c @@ -314,7 +314,7 @@ static DBusMessage *sim_get_properties(DBusConnection *conn, ofono_dbus_dict_append(&dict, "FixedDialing", DBUS_TYPE_BOOLEAN, &sim->fixed_dialing); - if (sim->mnc_length) { + if (sim->mnc_length && sim->imsi) { char mcc[OFONO_MAX_MCC_LENGTH + 1]; char mnc[OFONO_MAX_MNC_LENGTH + 1]; const char *str; -- cgit v1.2.3