diff options
author | Eduardo Chappa <chappa@washington.edu> | 2022-04-04 22:48:12 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2022-04-04 22:48:12 -0600 |
commit | dfab77514703d75d3874bd382fdcde4ec922553c (patch) | |
tree | 64d1f6179f21663c465bfc196d8c8f45fca77b39 /imap | |
parent | 48a8029513c940e4fd053cb2a602fbaf82860768 (diff) | |
download | alpine-dfab77514703d75d3874bd382fdcde4ec922553c.tar.xz |
* Cancel refresh token when a code 400 is received from the server.
* Crash in PC-Alpine when creating a mail collection and no username is
indicated in the server path. Reported by Sandy Schuman.
Diffstat (limited to 'imap')
-rw-r--r-- | imap/src/c-client/oauth2_aux.c | 1 |
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); |