mirror of git://git.sysmocom.de/ofono
Fix segmentation fault from SIM reading on Calypso modem
This commit is contained in:
parent
a63508a7db
commit
0e9f9d8bc8
|
@ -221,6 +221,9 @@ gboolean sim_spdi_lookup(struct sim_spdi *spdi,
|
|||
{
|
||||
struct spdi_operator spdi_op;
|
||||
|
||||
if (!spdi)
|
||||
return FALSE;
|
||||
|
||||
g_strlcpy(spdi_op.mcc, mcc, sizeof(spdi_op.mcc));
|
||||
g_strlcpy(spdi_op.mnc, mnc, sizeof(spdi_op.mnc));
|
||||
|
||||
|
|
Loading…
Reference in New Issue