]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix typo in chan_sip 02/4602/1
authorBadalyan Vyacheslav <v.badalyan@open-bs.ru>
Thu, 8 Dec 2016 18:43:23 +0000 (18:43 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 8 Dec 2016 22:53:45 +0000 (16:53 -0600)
The conditional expressions of the 'if' operators
situated alongside each other are identical.

Change-Id: I652b6dcddb3be007e669a6aa8107edb31a1ddafb

channels/chan_sip.c

index 2f86bdf1754e107f2bed5fce6c2a6e22c46d2f50..a2951e5f3f3f2efafb709715075dcfe229282ce1 100644 (file)
@@ -2508,7 +2508,7 @@ static void sip_threadinfo_destructor(void *obj)
        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) {