CtdlTerminateOtherSession(): fix evaluation whether we may kill this session or not.
authorWilfried Goesgens <dothebart@citadel.org>
Thu, 11 Oct 2012 14:57:32 +0000 (16:57 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Thu, 11 Oct 2012 14:57:32 +0000 (16:57 +0200)
citadel/context.c

index 255458d506d4e22376f074d181b01fbb41c4e68b..80c41a92a37360721297db19685a8a55872fa0f0 100644 (file)
@@ -168,7 +168,7 @@ int CtdlTerminateOtherSession (int session_num)
                }
        }
 
-       if (((ret & TERM_FOUND) != 0) && ((ret & TERM_ALLOWED) == 0))
+       if (((ret & TERM_FOUND) != 0) && ((ret & TERM_ALLOWED) != 0))
        {
                if (ccptr->IO != NULL) {
                        AsyncIO *IO = ccptr->IO;