diff options
author | Denis Kenzior <denkenz@gmail.com> | 2015-08-06 17:16:03 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2015-08-06 17:16:03 -0500 |
commit | 9ec8d03c7c579a0d661fb7885b2627c0300f14c1 (patch) | |
tree | 3e8ce2e892d2139105e32f4367fe4572538f5a72 /src | |
parent | 3e6bbc676fa2573d3733a6b0fa4010d3d61c6001 (diff) | |
download | ofono-9ec8d03c7c579a0d661fb7885b2627c0300f14c1.tar.bz2 |
voicecall: Don't accept USSD strings in Dial()
Diffstat (limited to 'src')
-rw-r--r-- | src/voicecall.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |