mirror of git://git.sysmocom.de/ofono
Fix crash in isimodem call forwarding.
This commit is contained in:
parent
2b8a358601
commit
37ae4832de
|
@ -143,6 +143,14 @@ static gboolean decode_gsm_forwarding_info(GIsiSubBlockIter *parent,
|
|||
info->numlen * 2,
|
||||
2 + len))
|
||||
return FALSE;
|
||||
|
||||
if (number)
|
||||
*number = tag;
|
||||
else
|
||||
g_free(tag);
|
||||
} else {
|
||||
if (number)
|
||||
*number = g_strdup("");
|
||||
}
|
||||
|
||||
if (status)
|
||||
|
@ -154,11 +162,6 @@ static gboolean decode_gsm_forwarding_info(GIsiSubBlockIter *parent,
|
|||
if (noreply)
|
||||
*noreply = info->noreply;
|
||||
|
||||
if (number)
|
||||
*number = tag;
|
||||
else
|
||||
g_free(tag);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in New Issue