Browse Source

nacc_fsm: Fix uninitialized plmn.mnc_3_digits parsing CTRL neigh resolution cmd

Fixes: Coverity CID#272987
Change-Id: I819bdb0cc126113542547e9c397673a2dee0f168
changes/85/28485/2
Pau Espin 1 month ago
parent
commit
263c75c912
  1. 1
      src/nacc_fsm.c

1
src/nacc_fsm.c

@ -799,6 +799,7 @@ void nacc_fsm_ctrl_reply_cb(struct ctrl_handle *ctrl, struct ctrl_cmd *cmd, void
if (!(tok = strtok_r(NULL, "-", &saveptr)))
goto free_ret;
cgi_ps.rai.lac.plmn.mnc = atoi(tok);
cgi_ps.rai.lac.plmn.mnc_3_digits = strlen(tok) > 2;
if (!(tok = strtok_r(NULL, "-", &saveptr)))
goto free_ret;

Loading…
Cancel
Save