isimodem: Crash while setting SCA

This commit is contained in:
Arun Ravindran 2011-03-11 14:49:55 +02:00 committed by Denis Kenzior
parent f2d3f232f2
commit 8ee5a49fc2
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ static void isi_sca_set(struct ofono_sms *sms,
{ &sd->params, sizeof(sd->params) },
};
if (cbd == NULL || sd == NULL)
if (cbd == NULL || sd == NULL || sd->sim == NULL)
goto error;
bcd = sd->params.sca;