mirror of git://git.sysmocom.de/ofono
isimodem: fix crash in sms driver
This commit is contained in:
parent
51159b7610
commit
e8d681f86d
|
@ -248,7 +248,7 @@ static void isi_sca_query(struct ofono_sms *sms,
|
|||
1, /* Location, default is 1 */
|
||||
};
|
||||
|
||||
if (cbd == NULL || sd == NULL)
|
||||
if (cbd == NULL || sd == NULL || sd->sim == NULL)
|
||||
goto error;
|
||||
|
||||
if (g_isi_client_send(sd->sim, msg, sizeof(msg),
|
||||
|
|
Loading…
Reference in New Issue