mirror of git://git.sysmocom.de/ofono
common: Match logic to comment: valid_ussd_string
This commit is contained in:
parent
cb571f807f
commit
333bb8b1d3
|
@ -492,7 +492,7 @@ gboolean valid_ussd_string(const char *str, gboolean call_in_progress)
|
||||||
if (str[len-1] == '#')
|
if (str[len-1] == '#')
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
if (!call_in_progress && len == 2 && str[0] != '1')
|
if (!call_in_progress && len == 2 && str[0] == '1')
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (len <= 2)
|
if (len <= 2)
|
||||||
|
|
Loading…
Reference in New Issue