diff options
author | Richard Mudgett <rmudgett@digium.com> | 2017-03-29 20:46:56 -0500 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2017-11-09 08:42:22 -0500 |
commit | 80c88d9b30b8b1a6c4b6e2295c37b7bfce145853 (patch) | |
tree | 1dcbd3f2354032d2bf643419d45ada22788d1a01 /channels | |
parent | 7b6f68fe2d887700e1658a39f4d7c2de0c17d974 (diff) |
chan_pjsip.c: Fix uninitialized cause value on failure.
Change-Id: I3f9dd3c31bd582e54a30381500077de2319d8cc3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_pjsip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c index 7520c2b0e..0160425e6 100644 --- a/channels/chan_pjsip.c +++ b/channels/chan_pjsip.c @@ -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; |