From c1be3b9cad0cf1b7a791d27fe3ab3fc95d75e6e9 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Fri, 8 May 2020 17:02:12 -0600 Subject: * Bug prevented development version from establishing a XOAUTH2 authentication. --- imap/src/c-client/auth_oa2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imap/src/c-client/auth_oa2.c b/imap/src/c-client/auth_oa2.c index 1608ad0..4c4a589 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 */ -- cgit v1.2.3-54-g00ecf