diff options
Diffstat (limited to 'src/gprs.c')
-rw-r--r-- | src/gprs.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -208,6 +208,9 @@ static DBusMessage *pri_set_apn(struct pri_context *ctx, DBusConnection *conn, if (g_str_equal(apn, ctx->context.apn)) return dbus_message_new_method_return(msg); + if (is_valid_apn(apn) == FALSE) + return __ofono_error_invalid_format(msg); + strcpy(ctx->context.apn, apn); g_dbus_send_reply(conn, msg, DBUS_TYPE_INVALID); |