aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver.c b/driver.c
index ec03cd01..4f35261e 100644
--- a/driver.c
+++ b/driver.c
@@ -1589,7 +1589,7 @@ const int maxfetch; /* maximum number of messages to fetch */
(void)sleep(1);
#if INET6_ENABLE
if ((mailserver_socket = SockOpen(realhost,
- ctl->server.service ? ctl->server.service : protocol->service,
+ ctl->server.service ? ctl->server.service : ( ctl->use_ssl ? protocol->sslservice : protocol->service ),
ctl->server.netsec, ctl->server.plugin)) == -1)
#else /* INET6_ENABLE */
if ((mailserver_socket = SockOpen(realhost, port, NULL, ctl->server.plugin)) == -1)