im.pidgin.pidgin: e6ce6d14c995030c3a6c8d7574f56d3b3e73633a

nwalp at pidgin.im nwalp at pidgin.im
Sat Nov 3 12:25:40 EDT 2007


-----------------------------------------------------------------
Revision: e6ce6d14c995030c3a6c8d7574f56d3b3e73633a
Ancestor: 868a040ee69c6e45b9132e7254a3f523e55385b2
Author: nwalp at pidgin.im
Date: 2007-11-03T16:19:50
Branch: im.pidgin.pidgin

Modified files:
        libpurple/connection.c

ChangeLog: 

Since the XMPP PurpleConnection is created before we know we need a password,
after prompting for the password, the password is never set inside the PurpleConnection,
only the PurpleAccount.  Now if there's no password on the PurpleConnection, we look for
one on the PurpleAccount.

fixes #3552


-------------- next part --------------
============================================================
--- libpurple/connection.c	a17379445ce104d6a9bf06d11a027ce977bbcd7f
+++ libpurple/connection.c	f7b25f035fdf56106d31f9dfc4d466d188d26904
@@ -432,7 +432,7 @@ purple_connection_get_password(const Pur
 {
 	g_return_val_if_fail(gc != NULL, NULL);
 
-	return gc->password;
+	return gc->password ? gc->password : gc->account->password;
 }
 
 const char *


More information about the Commits mailing list