aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-03-04 18:55:29 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-03-04 18:55:29 +0000
commit606ef849ef0e6bf3118721006784e0090b786ca9 (patch)
treec380273d035ce97654140a3ebb14b4bcce29c6ae /pop3.c
parent37b00d8ca765f97b0d6ae0171bd8493ec90a1496 (diff)
downloadfetchmail-606ef849ef0e6bf3118721006784e0090b786ca9.tar.gz
fetchmail-606ef849ef0e6bf3118721006784e0090b786ca9.tar.bz2
fetchmail-606ef849ef0e6bf3118721006784e0090b786ca9.zip
Various minor screwups.
svn path=/trunk/; revision=3191
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pop3.c b/pop3.c
index a6224249..304bec8f 100644
--- a/pop3.c
+++ b/pop3.c
@@ -195,7 +195,7 @@ int pop3_getauth(int sock, struct query *ctl, char *greeting)
#endif /* defined(KERBEROS_V4) || defined(KERBEROS_V5) */
flag has_cram = FALSE;
#ifdef OPIE_ENABLE
- flag has_opie = FALSE;
+ flag has_otp = FALSE;
#endif /* OPIE_ENABLE */
char buffer[64];
@@ -227,7 +227,7 @@ int pop3_getauth(int sock, struct query *ctl, char *greeting)
if (has_cram)
ctl->server.authenticate = A_CRAM_MD5;
#ifdef OPIE_ENABLE
- if (has_opie)
+ if (has_otp)
ctl->server.authenticate = A_OTP;
#endif /* OPIE_ENABLE */
#if defined(GSSAPI)
@@ -250,7 +250,7 @@ int pop3_getauth(int sock, struct query *ctl, char *greeting)
*/
if (
#if INET6_ENABLE
- strcmp(ctl->server.service, KPOP_PORT)!=0
+ ctl->server.service && (strcmp(ctl->server.service, KPOP_PORT)!=0)
#else /* INET6_ENABLE */
ctl->server.port != KPOP_PORT
#endif /* INET6_ENABLE */
@@ -265,7 +265,7 @@ int pop3_getauth(int sock, struct query *ctl, char *greeting)
#endif /* defined(GSSAPI) */
#ifdef OPIE_ENABLE
if (ctl->server.authenticate == A_OTP)
- do_otp(sock, "AUTH", ctl)
+ do_otp(sock, "AUTH", ctl);
#endif /* OPIE_ENABLE */
if (ctl->server.authenticate == A_CRAM_MD5)
return(do_cram_md5(sock, "AUTH", ctl));