Mercurial > pidgin.yaz
diff libgaim/protocols/gg/gg.c @ 15358:b49e2327088a
[gaim-migrate @ 18150]
Ensure the GaimConnection is valid in ggp_async_login_handler() before continuing
committer: Tailor Script <tailor@pidgin.im>
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Wed, 17 Jan 2007 22:44:30 +0000 |
parents | 57a208f9d97b |
children |
line wrap: on
line diff
--- 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);