Fix disabled STARTTLS functionality.

This commit is contained in:
Lefteris Chatzimparmpas 2012-02-15 08:41:13 +01:00
parent 2cafede975
commit fe5f789f8e

View File

@ -178,7 +178,7 @@ request_login(session **ssnptr, const char *server, const char *port, const
goto fail;
#ifndef NO_SSLTLS
if (!ssl && ssn->capabilities & CAPABILITY_STARTTLS &&
if (!ssn->ssl && ssn->capabilities & CAPABILITY_STARTTLS &&
get_option_boolean("starttls")) {
t = send_request(ssn, "STARTTLS");
switch (response_generic(ssn, t)) {