From: Denis Kenzior Date: Thu, 6 Aug 2015 22:16:03 +0000 (-0500) Subject: voicecall: Don't accept USSD strings in Dial() X-Git-Tag: upstream/1.17~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ec8d03c7c579a0d661fb7885b2627c0300f14c1;p=platform%2Fupstream%2Fofono.git voicecall: Don't accept USSD strings in Dial() --- diff --git a/src/voicecall.c b/src/voicecall.c index 550b79b4..b0882391 100644 --- a/src/voicecall.c +++ b/src/voicecall.c @@ -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;