--- a/libpurple/protocols/bonjour/bonjour_ft.c Tue May 06 12:24:46 2014 +0200 +++ b/libpurple/protocols/bonjour/bonjour_ft.c Tue May 06 12:25:04 2014 +0200 @@ -945,7 +945,7 @@ local_ips = bonjour_jabber_get_local_ips(sock); - port = g_strdup_printf("%hu", xfer->local_port); + port = g_strdup_printf("%hu", (guint16)purple_xfer_get_local_port(xfer)); while(local_ips) { streamhost = xmlnode_new_child(query, "streamhost"); xmlnode_set_attrib(streamhost, "jid", xf->sid);