summaryrefslogtreecommitdiff
path: root/imap
diff options
context:
space:
mode:
Diffstat (limited to 'imap')
-rw-r--r--imap/src/c-client/oauth2_aux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/imap/src/c-client/oauth2_aux.c b/imap/src/c-client/oauth2_aux.c
index eac92a10..3bb4b502 100644
--- a/imap/src/c-client/oauth2_aux.c
+++ b/imap/src/c-client/oauth2_aux.c
@@ -314,6 +314,7 @@ mm_login_oauth2_c_client_method (NETMBX *mb, char *user, char *method,
switch(status){
case HTTP_UNAUTHORIZED:
mm_log("Client not authorized (wrong client-id?)", ERROR);
+ oauth2->cancel_refresh_token++;
break;
case HTTP_OK: if(oauth2->access_token)
fs_give((void **) &oauth2->access_token);