Skip to content
Snippets Groups Projects
Commit 0bcb3a02 authored by Joshua Colp's avatar Joshua Colp Committed by Gerrit Code Review
Browse files

Merge "chan_pjsip.c: Fix uninitialized cause value on failure."

parents 15d3c5f3 12010fc5
Branches
Tags
No related merge requests found
......@@ -2442,6 +2442,8 @@ static struct ast_channel *chan_pjsip_request_with_stream_topology(const char *t
req_data.topology = topology;
req_data.dest = data;
/* Default failure value in case ast_sip_push_task_synchronous() itself fails. */
req_data.cause = AST_CAUSE_FAILURE;
if (ast_sip_push_task_synchronous(NULL, request, &req_data)) {
*cause = req_data.cause;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment