Skip to content

Commit

Permalink
osp: fix use of uninitialized pointer
Browse files Browse the repository at this point in the history
(cherry picked from commit fc5b59e)
(cherry picked from commit 451fe19)
  • Loading branch information
l2dy authored and liviuchircu committed Mar 12, 2020
1 parent fc81581 commit f114852
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/osp/orig_transaction.c
Expand Up @@ -471,6 +471,7 @@ int ospRequestRouting(
if ((errcode = OSPPTransactionNew(_osp_provider, &trans)) != OSPC_ERR_NO_ERROR) {
LM_ERR("failed to create new OSP transaction (%d)\n", errcode);
} else if (ospGetCallId(msg, &(callids[0])) != 0) {
callids[0] = NULL;
LM_ERR("failed to extract call id\n");
} else if (ospGetFromUser(msg, inbound.calling, sizeof(inbound.calling)) != 0) {
LM_ERR("failed to extract calling number\n");
Expand Down

0 comments on commit f114852

Please sign in to comment.