diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2001-06-11 18:32:03 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2001-06-11 18:32:03 +0000 |
commit | 51616d433a66602946e693f01dc8769bacc8787e (patch) | |
tree | 5b5b518ef3ab5271d0696ead24d869052e37824e /imap/auth.c | |
parent | 10fd8347525cc5d069f162beacfef8e982a57e23 (diff) |
patch-bac.flags-20010611.1
Diffstat (limited to 'imap/auth.c')
-rw-r--r-- | imap/auth.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/imap/auth.c b/imap/auth.c index 1ce73e35..9e4c8d02 100644 --- a/imap/auth.c +++ b/imap/auth.c @@ -48,21 +48,23 @@ int imap_authenticate (IMAP_DATA* idata) { imap_auth_t* authenticator; char* methods; - char* comma; /* should be colon ;-) */ char* method; + char* delim; int r = -1; if (ImapAuthenticators && *ImapAuthenticators) { /* Try user-specified list of authentication methods */ methods = safe_strdup (ImapAuthenticators); - method = methods; - while (method) + for (method = methods; method; method = delim) { - comma = strchr (method, ':'); - if (comma) - *comma++ = '\0'; + delim = strchr (method, ':'); + if (delim) + *delim++ = '\0'; + if (! method[0]) + continue; + dprint (2, (debugfile, "imap_authenticate: Trying method %s\n", method)); authenticator = imap_authenticators; @@ -79,8 +81,6 @@ int imap_authenticate (IMAP_DATA* idata) authenticator++; } - - method = comma; } FREE (&methods); |