diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2000-08-25 06:28:22 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2000-08-25 06:28:22 +0000 |
commit | d915b258fa0b8996331499e60068f04596a843e4 (patch) | |
tree | 7b88aec7f0b051b8b961254534db59affba02ccd /mutt_socket.c | |
parent | d42280540776cbbc02233dfbd1d45beba99396e9 (diff) |
patch-bac.imapurl-2, with small modifications.
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; |