summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */