Skip to content

Commit fc5b59e

Browse files
committed
osp: fix use of uninitialized pointer
1 parent 32f022d commit fc5b59e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/osp/orig_transaction.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ int ospRequestRouting(
471471
if ((errcode = OSPPTransactionNew(_osp_provider, &trans)) != OSPC_ERR_NO_ERROR) {
472472
LM_ERR("failed to create new OSP transaction (%d)\n", errcode);
473473
} else if (ospGetCallId(msg, &(callids[0])) != 0) {
474+
callids[0] = NULL;
474475
LM_ERR("failed to extract call id\n");
475476
} else if (ospGetFromUser(msg, inbound.calling, sizeof(inbound.calling)) != 0) {
476477
LM_ERR("failed to extract calling number\n");

0 commit comments

Comments
 (0)