diff options
author | Harald Welte <laforge@gnumonks.org> | 2016-11-26 15:00:08 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-12-09 15:35:31 +0000 |
commit | 2327cede9cd205ef8d2e0fef59857599024838c8 (patch) | |
tree | 963c498c6a81cd29a67bd51106f057e848e86466 /openbsc/src/osmo-bsc | |
parent | 8d35965f24047f097f0a639b7a73acf5af0ff714 (diff) |
bsc_ctrl: Ensure we don't pass NULL string into strtok_r()
Change-Id: I03bea132377c0136b55b6fdad99a5d92da12e692
Fixes: Coverity CID 135180
Diffstat (limited to 'openbsc/src/osmo-bsc')
-rw-r--r-- | openbsc/src/osmo-bsc/osmo_bsc_ctrl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_ctrl.c b/openbsc/src/osmo-bsc/osmo_bsc_ctrl.c index f10a74ad9..5352bf2d0 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_ctrl.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_ctrl.c @@ -605,6 +605,7 @@ static int verify_net_ussd_notify(struct ctrl_cmd *cmd, const char *value, void char *saveptr = NULL; char *inp, *cic, *alert, *text; + OSMO_ASSERT(cmd); inp = talloc_strdup(cmd, value); cic = strtok_r(inp, ",", &saveptr); |