changeset 635:dcd6b0b95801

imap: Enable STARTTLS if tls-listen not tls-outgoing is set Cc: Antonio Querubin <tony@lava.net Signed-off-by: Simon Horman <horms@verge.net.au>
author Simon Horman <horms@verge.net.au>
date Thu, 01 Oct 2009 00:01:21 +1000
parents 25565a560430
children d974788874aa
files perdition/imap4_in.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/perdition/imap4_in.c	Thu Oct 01 00:00:20 2009 +1000
+++ b/perdition/imap4_in.c	Thu Oct 01 00:01:21 2009 +1000
@@ -446,7 +446,7 @@
 			! strncasecmp((char *)token_buf(t), IMAP4_CMD_STARTTLS, 
 				token_len(t))) {
       __IMAP4_IN_CHECK_NO_ARG(IMAP4_CMD_STARTTLS);
-      if(!(opt.ssl_mode & SSL_MODE_TLS_OUTGOING)) {
+      if(!(opt.ssl_mode & SSL_MODE_TLS_LISTEN)) {
 	__IMAP4_IN_BAD("STARTTLS disabled, mate");
       }
       if(io_get_type(io) != io_type_ssl){