[Asterisk-code-review] chan pjsip.c: Fix uninitialized cause value on failure. (asterisk[15])

Jenkins2 asteriskteam at digium.com
Fri Nov 10 08:03:37 CST 2017


Jenkins2 has submitted this change and it was merged. ( https://gerrit.asterisk.org/7146 )

Change subject: chan_pjsip.c: Fix uninitialized cause value on failure.
......................................................................

chan_pjsip.c: Fix uninitialized cause value on failure.

Change-Id: I3f9dd3c31bd582e54a30381500077de2319d8cc3
---
M channels/chan_pjsip.c
1 file changed, 2 insertions(+), 0 deletions(-)

Approvals:
  Corey Farrell: Looks good to me, but someone else must approve
  Joshua Colp: Looks good to me, approved
  Jenkins2: Approved for Submit



diff --git a/channels/chan_pjsip.c b/channels/chan_pjsip.c
index 7520c2b..0160425 100644
--- a/channels/chan_pjsip.c
+++ b/channels/chan_pjsip.c
@@ -2442,6 +2442,8 @@
 
 	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;

-- 
To view, visit https://gerrit.asterisk.org/7146
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: 15
Gerrit-MessageType: merged
Gerrit-Change-Id: I3f9dd3c31bd582e54a30381500077de2319d8cc3
Gerrit-Change-Number: 7146
Gerrit-PatchSet: 1
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171110/8ced1704/attachment.html>


More information about the asterisk-code-review mailing list