diff options
author | dequis <dx@dxzone.com.ar> | 2015-10-14 13:31:07 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-10-14 13:31:07 -0300 |
commit | 532efdfab801ac28c0ad9f401ac3da991806c7aa (patch) | |
tree | 5786201479926fd0cc9efd4e3c20e9b020ebfb1e /protocols/msn/ns.c | |
parent | 12442edb26967cbd60fc95de1cf6846ca3e4d64d (diff) |
msn: Don't reconnect on wsse:FailedAuthentication errors
That includes location blocked and incorrect password.
Diffstat (limited to 'protocols/msn/ns.c')
-rw-r--r-- | protocols/msn/ns.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/protocols/msn/ns.c b/protocols/msn/ns.c index 766c31e1..3968e97a 100644 --- a/protocols/msn/ns.c +++ b/protocols/msn/ns.c @@ -594,7 +594,13 @@ void msn_auth_got_passport_token(struct im_connection *ic, const char *token, co msn_ns_write(ic, -1, "USR %d SSO S %s %s {%s}\r\n", ++md->trId, md->tokens[0], token, md->uuid); } else { imcb_error(ic, "Error during Passport authentication: %s", error); - imc_logout(ic, TRUE); + + /* don't reconnect with auth errors */ + if (error && g_str_has_prefix(error, "wsse:FailedAuthentication")) { + imc_logout(ic, FALSE); + } else { + imc_logout(ic, TRUE); + } } } |