mirror of git://git.sysmocom.de/ofono
isimodem: Crash while setting SCA
This commit is contained in:
parent
f2d3f232f2
commit
8ee5a49fc2
|
@ -292,7 +292,7 @@ static void isi_sca_set(struct ofono_sms *sms,
|
||||||
{ &sd->params, sizeof(sd->params) },
|
{ &sd->params, sizeof(sd->params) },
|
||||||
};
|
};
|
||||||
|
|
||||||
if (cbd == NULL || sd == NULL)
|
if (cbd == NULL || sd == NULL || sd->sim == NULL)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
bcd = sd->params.sca;
|
bcd = sd->params.sca;
|
||||||
|
|
Loading…
Reference in New Issue