CtdlTerminateOtherSession(): fix evaluation whether we may kill this session or not.
[citadel.git] / 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;