[Asterisk-code-review] Fix typo in chan sip (asterisk[14])

Joshua Colp asteriskteam at digium.com
Thu Dec 8 16:53:46 CST 2016


Joshua Colp has uploaded a new change for review. ( https://gerrit.asterisk.org/4602 )

Change subject: Fix typo in chan_sip
......................................................................

Fix typo in chan_sip

The conditional expressions of the 'if' operators
situated alongside each other are identical.

Change-Id: I652b6dcddb3be007e669a6aa8107edb31a1ddafb
---
M channels/chan_sip.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/02/4602/1

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 2f86bdf..a2951e5 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -2508,7 +2508,7 @@
 	struct sip_threadinfo *th = obj;
 	struct tcptls_packet *packet;
 
-	if (th->alert_pipe[1] > -1) {
+	if (th->alert_pipe[0] > -1) {
 		close(th->alert_pipe[0]);
 	}
 	if (th->alert_pipe[1] > -1) {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I652b6dcddb3be007e669a6aa8107edb31a1ddafb
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 14
Gerrit-Owner: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Badalian Vyacheslav <v.badalyan at open-bs.ru>



More information about the asterisk-code-review mailing list