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

Jenkins2 asteriskteam at digium.com
Fri Nov 10 08:18:05 CST 2017


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

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 75dcd76..5efff7e 100644
--- a/channels/chan_pjsip.c
+++ b/channels/chan_pjsip.c
@@ -2193,6 +2193,8 @@
 
 	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;

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

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: merged
Gerrit-Change-Id: I3f9dd3c31bd582e54a30381500077de2319d8cc3
Gerrit-Change-Number: 7145
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/63deb316/attachment.html>


More information about the asterisk-code-review mailing list