For the SSL-only ports, if crypto negotiation fails,
[citadel.git] / citadel / modules / imap / serv_imap.c
index ca4acfb6c38dca00a0ad52381d67f5dd244d11e7..1454781aacde94685ed4e0d84f9800faadd65d56 100644 (file)
@@ -508,6 +508,7 @@ void imap_greeting(void)
  */
 void imaps_greeting(void) {
        CtdlModuleStartCryptoMsgs(NULL, NULL, NULL);
+       if (!CC->redirect_ssl) CC->kill_me = 1;         /* kill session if no crypto */
        imap_greeting();
 }