summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2020-05-08 17:02:12 -0600
committerEduardo Chappa <chappa@washington.edu>2020-05-08 17:02:12 -0600
commitc1be3b9cad0cf1b7a791d27fe3ab3fc95d75e6e9 (patch)
treeebe96027831608f1caf1b997e989083d1aca69cb
parent4dc6d4636706e454d042bc599be9f97660f2e2b1 (diff)
downloadalpine-c1be3b9cad0cf1b7a791d27fe3ab3fc95d75e6e9.tar.xz
* Bug prevented development version from establishing a XOAUTH2 authentication.
-rw-r--r--imap/src/c-client/auth_oa2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/imap/src/c-client/auth_oa2.c b/imap/src/c-client/auth_oa2.c
index 1608ad0c..4c4a5898 100644
--- a/imap/src/c-client/auth_oa2.c
+++ b/imap/src/c-client/auth_oa2.c
@@ -92,7 +92,7 @@ long auth_oauth2_client (authchallenge_t challenger,authrespond_t responder, cha
mm_log ("SECURITY PROBLEM: insecure server advertised AUTH=XOAUTH2",WARN);
/* get initial (empty) challenge */
- if ((challenge = (*challenger) (stream,&clen)) != NULL) {
+ if (base || (challenge = (*challenger) (stream,&clen)) != NULL) {
if(base == NIL){
fs_give ((void **) &challenge);
if (clen) { /* abort if challenge non-empty */