pidgin: 514b763d: Fix a possible crash reported by HanzZ. ...

qulogic at pidgin.im qulogic at pidgin.im
Tue Aug 24 00:56:14 EDT 2010


----------------------------------------------------------------------
Revision: 514b763ddb36f2f1492895fc413c7774e3b56b9d
Parent:   339664dc0d1f04ffbc4a4bedd839e10b3628e75e
Author:   hanzz at soc.pidgin.im
Date:     08/24/10 00:54:00
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/514b763ddb36f2f1492895fc413c7774e3b56b9d

Changelog: 

Fix a possible crash reported by HanzZ. Fix thanks to HanzZ also.

Changes against parent 339664dc0d1f04ffbc4a4bedd839e10b3628e75e

  patched  libpurple/protocols/msn/session.c

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/session.c	0d5255671b27868560123b0861a920671350e7bc
+++ libpurple/protocols/msn/session.c	a4b05e19dd9a3af0ea25201cc3ca7780b908eac9
@@ -283,7 +283,7 @@ msn_session_activate_login_timeout(MsnSe
 void
 msn_session_activate_login_timeout(MsnSession *session)
 {
-	if (!session->logged_in) {
+	if (!session->logged_in && session->connected) {
 		session->login_timeout =
 			purple_timeout_add_seconds(MSN_LOGIN_FQY_TIMEOUT,
 			                           msn_login_timeout_cb, session);


More information about the Commits mailing list