# HG changeset patch # User Elliott Sales de Andrade # Date 1279392549 0 # Node ID 62ca462d0abc0d2acbb11074290260ac209a2932 # Parent 28d5f60910c9b32c84551fc518e09a9f62f1aeff Clear the password on an MSN account if saving is disabled and the password was wrong. This should be in line with what other prpls do. Fixes #12290. diff -r 28d5f60910c9 -r 62ca462d0abc libpurple/protocols/msn/session.c --- a/libpurple/protocols/msn/session.c Mon Jul 12 15:15:18 2010 +0000 +++ b/libpurple/protocols/msn/session.c Sat Jul 17 18:49:09 2010 +0000 @@ -362,6 +362,9 @@ msg = g_strdup_printf(_("Unable to authenticate: %s"), (info == NULL ) ? _("Unknown error") : info); + /* Clear the password if it isn't being saved */ + if (!purple_account_get_remember_password(session->account)) + purple_account_set_password(session->account, NULL); break; case MSN_ERROR_BAD_BLIST: reason = PURPLE_CONNECTION_ERROR_NETWORK_ERROR;