stk: Be more paranoid of enums from stk

This commit is contained in:
Denis Kenzior 2010-07-08 14:26:34 -05:00
parent 45d535b802
commit 7d98e604c7
1 changed files with 3 additions and 0 deletions

View File

@ -540,6 +540,9 @@ static gboolean handle_command_poll_interval(const struct stk_command *cmd,
if (seconds < 1)
seconds = 1;
break;
default:
rsp->result.type = STK_RESULT_TYPE_DATA_NOT_UNDERSTOOD;
return TRUE;
}
if (ofono_modem_set_integer(modem, "status-poll-interval", seconds)) {