diff options
author | Richard Mudgett <rmudgett@digium.com> | 2017-03-29 20:46:56 -0500 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2017-11-09 07:39:59 -0600 |
commit | 32042c6c3c353fa2699be9d963aa4224dec35628 (patch) | |
tree | 16171c10fb968dbfa2fbbb6007c4bce39f81a1dc /channels | |
parent | 7296d3e5affe6f78edb34d910ed95f50e8e77bda (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 75dcd7610..5efff7eca 100644 --- a/channels/chan_pjsip.c +++ b/channels/chan_pjsip.c @@ -2193,6 +2193,8 @@ static struct ast_channel *chan_pjsip_request(const char *type, struct ast_forma req_data.caps = cap; 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; |