# HG changeset patch # User Evan Schoenberg # Date 1169073870 0 # Node ID b49e2327088a6365db25d3601bdd0427e5ac2208 # Parent 2db21e0292b8c78521e7a3810835a4f4d6d19ce5 [gaim-migrate @ 18150] Ensure the GaimConnection is valid in ggp_async_login_handler() before continuing committer: Tailor Script diff -r 2db21e0292b8 -r b49e2327088a libgaim/protocols/gg/gg.c --- a/libgaim/protocols/gg/gg.c Wed Jan 17 18:57:22 2007 +0000 +++ b/libgaim/protocols/gg/gg.c Wed Jan 17 22:44:30 2007 +0000 @@ -1410,9 +1410,13 @@ static void ggp_async_login_handler(gpointer _gc, gint fd, GaimInputCondition cond) { GaimConnection *gc = _gc; - GGPInfo *info = gc->proto_data; + GGPInfo *info; struct gg_event *ev; + g_return_if_fail(GAIM_CONNECTION_IS_VALID(gc)); + + info = gc->proto_data; + gaim_debug_info("gg", "login_handler: session: check = %d; state = %d;\n", info->session->check, info->session->state);