--- a/libpurple/protocols/gg/pubdir-prpl.c Wed Oct 02 23:12:55 2013 +0530 +++ b/libpurple/protocols/gg/pubdir-prpl.c Thu Oct 03 02:15:31 2013 +0530 @@ -200,7 +200,7 @@ PurpleHttpRequest *req; ggp_pubdir_request *request = _request; - if (!token || !PURPLE_IS_CONNECTION(gc)) + if (!token || !PURPLE_CONNECTION_IS_VALID(gc)) { request->cb(gc, -1, NULL, 0, request->user_data); ggp_pubdir_request_free(request); @@ -634,7 +634,7 @@ ggp_pubdir_request *request = _request; gchar *query; - if (!token || !PURPLE_IS_CONNECTION(gc)) + if (!token || !PURPLE_CONNECTION_IS_VALID(gc)) { request->cb(gc, -1, NULL, 0, request->user_data); ggp_pubdir_request_free(request); @@ -911,7 +911,7 @@ gchar *name, *surname, *city; uin_t uin = record->uin; - if (!token || !PURPLE_IS_CONNECTION(gc)) + if (!token || !PURPLE_CONNECTION_IS_VALID(gc)) { // TODO: notify about failure ggp_pubdir_record_free(record, 1);