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

Joshua Colp asteriskteam at digium.com
Thu Dec 8 16:54:07 CST 2016


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

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/03/4603/1

diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 895739b..4181edb 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -2503,7 +2503,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/4603
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I652b6dcddb3be007e669a6aa8107edb31a1ddafb
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
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