voicecall: Don't accept USSD strings in Dial()

This commit is contained in:
Denis Kenzior 2015-08-06 17:16:03 -05:00
parent 3e6bbc676f
commit 9ec8d03c7c
1 changed files with 3 additions and 0 deletions

View File

@ -1513,6 +1513,9 @@ static int voicecall_dial(struct ofono_voicecall *vc, const char *number,
if (g_slist_length(vc->call_list) >= MAX_VOICE_CALLS)
return -EPERM;
if (valid_ussd_string(number, vc->call_list != NULL))
return -EINVAL;
if (!valid_long_phone_number_format(number))
return -EINVAL;