--- a/libpurple/protocols/bonjour/mdns_common.c Thu Sep 12 21:55:35 2013 +0530 +++ b/libpurple/protocols/bonjour/mdns_common.c Thu Sep 12 21:56:20 2013 +0530 @@ -257,7 +257,7 @@ bonjour_dns_sd_set_jid(PurpleAccount *account, const char *hostname) { PurpleConnection *conn = purple_account_get_connection(account); - BonjourData *bd = purple_connection_get_protocol_data(conn); + BonjourConnection *bd = BONJOUR_CONNECTION(conn); const char *tmp, *account_name = purple_account_get_username(account); /* Previously we allowed the hostname part of the jid to be set