projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e6bbc6
)
voicecall: Don't accept USSD strings in Dial()
author
Denis Kenzior
<denkenz@gmail.com>
Thu, 6 Aug 2015 22:16:03 +0000
(17:16 -0500)
committer
Denis Kenzior
<denkenz@gmail.com>
Thu, 6 Aug 2015 22:16:03 +0000
(17:16 -0500)
src/voicecall.c
patch
|
blob
|
history
diff --git
a/src/voicecall.c
b/src/voicecall.c
index 550b79b404f605b9570e771c7754b51c52cfbabb..b0882391dc3cb806123bc52969c2b8fa9505a2f8 100644
(file)
--- 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;