]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix typo in chan_sip 03/4603/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:54:06 +0000 (16:54 -0600)
The conditional expressions of the 'if' operators
situated alongside each other are identical.

Change-Id: I652b6dcddb3be007e669a6aa8107edb31a1ddafb

channels/chan_sip.c

index 895739b4c0febf20058680aa6959034705d21faf..4181edb42cda95830c3e5fdecd3dc7a9432febbd 100644 (file)
@@ -2503,7 +2503,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) {