mirror of git://git.sysmocom.de/ofono
stk: Be more paranoid of enums from stk
This commit is contained in:
parent
45d535b802
commit
7d98e604c7
|
@ -540,6 +540,9 @@ static gboolean handle_command_poll_interval(const struct stk_command *cmd,
|
||||||
if (seconds < 1)
|
if (seconds < 1)
|
||||||
seconds = 1;
|
seconds = 1;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
rsp->result.type = STK_RESULT_TYPE_DATA_NOT_UNDERSTOOD;
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ofono_modem_set_integer(modem, "status-poll-interval", seconds)) {
|
if (ofono_modem_set_integer(modem, "status-poll-interval", seconds)) {
|
||||||
|
|
Loading…
Reference in New Issue