diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-11-18 14:24:32 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-11-18 14:24:32 +0000 |
commit | 2804566e75b56eaa8866b889fa08cc27c8df7aa4 (patch) | |
tree | fb5feae42a21364778b5f81a989c33108cc57021 /imap | |
parent | 07d90fd243de202c97cd61ce2b74d0f21a3995ef (diff) |
Small code clean-up.
Diffstat (limited to 'imap')
-rw-r--r-- | imap/socket.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/imap/socket.c b/imap/socket.c index a81bfa38..cf921a12 100644 --- a/imap/socket.c +++ b/imap/socket.c @@ -125,11 +125,6 @@ CONNECTION *mutt_socket_select_connection (char *host, int port, int flags) conn->next = Connections; Connections = conn; - conn->read = raw_socket_read; - conn->write = raw_socket_write; - conn->open = raw_socket_open; - conn->close = raw_socket_close; - #ifdef USE_SSL if (flags == M_NEW_SSL_SOCKET) { @@ -138,7 +133,14 @@ CONNECTION *mutt_socket_select_connection (char *host, int port, int flags) conn->open = ssl_socket_open; conn->close = ssl_socket_close; } + else #endif + { + conn->read = raw_socket_read; + conn->write = raw_socket_write; + conn->open = raw_socket_open; + conn->close = raw_socket_close; + } return conn; } |