bsc_ctrl: Ensure we don't pass NULL string into strtok_r()

Change-Id: I03bea132377c0136b55b6fdad99a5d92da12e692
Fixes: Coverity CID 135180
This commit is contained in:
Harald Welte 2016-11-26 15:00:08 +01:00
parent 8d35965f24
commit 2327cede9c
1 changed files with 1 additions and 0 deletions

View File

@ -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);