diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2021-08-26 23:53:14 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2021-08-26 23:53:14 +0200 |
commit | 7f0acc8fc9cc6274b4cb52390c77d78dacfecc15 (patch) | |
tree | d331c712a3c0f330660137b44f47385cfed372a5 /imap.c | |
parent | 5e9e3c8682180ddee8da74e3711dc3328ae2f306 (diff) | |
download | fetchmail-7f0acc8fc9cc6274b4cb52390c77d78dacfecc15.tar.gz fetchmail-7f0acc8fc9cc6274b4cb52390c77d78dacfecc15.tar.bz2 fetchmail-7f0acc8fc9cc6274b4cb52390c77d78dacfecc15.zip |
IMAP: rename misnamed function and variable
Diffstat (limited to 'imap.c')
-rw-r--r-- | imap.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -390,7 +390,7 @@ static int capa_probe(int sock, struct query *ctl) return PS_SUCCESS; } -static int do_authcert (int sock, const char *command, const char *name) +static int do_auth_external (int sock, const char *command, const char *name) /* do authentication "external" (authentication provided by client cert) */ { char buf[256]; @@ -531,15 +531,15 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting) || ctl->server.authenticate == A_EXTERNAL) && strstr(capabilities, "AUTH=EXTERNAL")) { - ok = do_authcert(sock, "AUTHENTICATE", ctl->remotename); - if (ok) + int err = do_auth_external(sock, "AUTHENTICATE", ctl->remotename); + if (err) { /* SASL cancellation of authentication */ gen_send(sock, "*"); if (ctl->server.authenticate != A_ANY) - return ok; + return err; } else { - return ok; + return PS_SUCCESS; } } |