summaryrefslogtreecommitdiffstats
path: root/src/ussd.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-06-18 09:23:20 -0500
committerDenis Kenzior <denkenz@gmail.com>2012-06-18 09:23:20 -0500
commit4d49f5cd34131b6fe440d4c6d29276e50678d66a (patch)
tree4e73517dd2e7768bf28ceab5998642ae486b2d0c /src/ussd.c
parent61a3905195c813fbff2742d8114d94951726bcd7 (diff)
downloadofono-4d49f5cd34131b6fe440d4c6d29276e50678d66a.tar.bz2
ussd: send NotRecognized error for invalid USSD
Diffstat (limited to 'src/ussd.c')
-rw-r--r--src/ussd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ussd.c b/src/ussd.c
index 29cf1b49..74888b2e 100644
--- a/src/ussd.c
+++ b/src/ussd.c
@@ -573,7 +573,7 @@ static DBusMessage *ussd_initiate(DBusConnection *conn, DBusMessage *msg,
DBG("No.., checking if this is a USSD string");
if (!valid_ussd_string(str, call_in_progress))
- return __ofono_error_invalid_format(msg);
+ return __ofono_error_not_recognized(msg);
if (!ussd_encode(str, &num_packed, buf))
return __ofono_error_invalid_format(msg);