unsigned int idling:1;
unsigned int idle_stopping:1;
unsigned int idle_plus_waiting:1;
- unsigned int handshake_failed:1;
};
static int imapc_connection_output(struct imapc_connection *conn);
if (conn->ssl_iostream == NULL) {
i_error("imapc(%s): Server disconnected unexpectedly",
conn->name);
- } else if (!conn->handshake_failed) {
+ } else {
errstr = ssl_iostream_get_last_error(conn->ssl_iostream);
if (errstr == NULL) {
errstr = conn->input->stream_errno == 0 ? "EOF" :
}
return 0;
} else {
- conn->handshake_failed = TRUE;
*error_r = error;
return -1;
}
const char *input_line;
struct istream *dot_input;
- unsigned int handshake_failed:1;
unsigned int running:1;
};
if (client->ssl_iostream == NULL) {
i_error("pop3c(%s): Server disconnected unexpectedly",
client->set.host);
- } else if (!client->handshake_failed) {
+ } else {
errstr = ssl_iostream_get_last_error(client->ssl_iostream);
if (errstr == NULL) {
errstr = client->input->stream_errno == 0 ? "EOF" :
}
return 0;
} else {
- client->handshake_failed = TRUE;
*error_r = error;
return -1;
}