diff options
Diffstat (limited to 'mutt_socket.c')
-rw-r--r-- | mutt_socket.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/mutt_socket.c b/mutt_socket.c index fd3e2eb6..97d06bb9 100644 --- a/mutt_socket.c +++ b/mutt_socket.c @@ -191,11 +191,19 @@ CONNECTION* mutt_conn_find (const CONNECTION* start, const ACCOUNT* account) conn->next = Connections; Connections = conn; -#ifdef USE_SSL if (account->flags & M_ACCT_SSL) + { +#ifdef USE_SSL ssl_socket_setup (conn); - else +#else + mutt_error _("SSL is unavailable."); + sleep (2); + FREE (&conn); + + return NULL; #endif + } + else { conn->read = raw_socket_read; conn->write = raw_socket_write; |