common/vty.c: fix: properly assert() the result of get_string_value()

Change-Id: I6ecd46371e601ad0fb629f9756b36c9c4758a958
Fixes: CID#205067, CID#205068
This commit is contained in:
Vadim Yanitskiy 2019-11-26 17:14:04 +07:00
parent a070e863e2
commit 3cb61d902c
1 changed files with 2 additions and 2 deletions

View File

@ -1613,7 +1613,7 @@ DEFUN(logging_fltr_l1_sapi, logging_fltr_l1_sapi_cmd, "HIDDEN", "HIDDEN")
struct log_target *tgt = osmo_log_vty2tgt(vty);
uint16_t **sapi_mask;
OSMO_ASSERT(sapi < 0);
OSMO_ASSERT(sapi >= 0);
if (!tgt)
return CMD_WARNING;
@ -1635,7 +1635,7 @@ DEFUN(no_logging_fltr_l1_sapi, no_logging_fltr_l1_sapi_cmd, "HIDDEN", "HIDDEN")
struct log_target *tgt = osmo_log_vty2tgt(vty);
uint16_t *sapi_mask;
OSMO_ASSERT(sapi < 0);
OSMO_ASSERT(sapi >= 0);
if (!tgt)
return CMD_WARNING;
if (!tgt->filter_data[LOG_FLT_L1_SAPI])