aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/pop3.c b/pop3.c
index 8fd07d11..573a8cd0 100644
--- a/pop3.c
+++ b/pop3.c
@@ -253,10 +253,11 @@ static int pop3_getauth(int sock, struct query *ctl, char *greeting)
{
char *realhost;
- realhost = ctl->server.via ? ctl->server.via : ctl->server.pollname; gen_transact(sock, "STLS");
- if (SSLOpen(sock,ctl->sslcert,ctl->sslkey,ctl->sslproto,ctl->sslcertck, ctl->sslcertpath,ctl->sslfingerprint,realhost,ctl->server.pollname) == -1)
- {
- report(stderr,
+ realhost = ctl->server.via ? ctl->server.via : ctl->server.pollname;
+ gen_transact(sock, "STLS");
+ if (SSLOpen(sock,ctl->sslcert,ctl->sslkey,ctl->sslproto,ctl->sslcertck, ctl->sslcertpath,ctl->sslfingerprint,realhost,ctl->server.pollname) == -1)
+ {
+ report(stderr,
GT_("SSL connection failed.\n"));
return(PS_AUTHFAIL);
}