--- a/libpurple/protocols/mxit/roster.c Sat Jan 26 12:46:00 2013 +0200 +++ b/libpurple/protocols/mxit/roster.c Wed Mar 27 01:37:02 2013 +0200 @@ -619,7 +619,7 @@ purple_debug_info( MXIT_PLUGIN_ID, "mxit_cb_buddy_deny '%s'\n", invite->contact->username ); /* send a deny subscription packet to MXit */ - mxit_send_deny_sub( invite->session, invite->contact->username ); + mxit_send_deny_sub( invite->session, invite->contact->username, NULL ); /* remove the invite from our internal invites list */ invite->session->invites = g_list_remove( invite->session->invites, invite->contact ); @@ -750,8 +750,10 @@ if ( buddy_name[0] == '#' ) { gchar *tmp = (gchar*) purple_base64_decode( buddy_name + 1, NULL ); - mxit_send_invite( session, tmp, FALSE, buddy_alias, group_name, message ); - g_free( tmp ); + if ( tmp ) { + mxit_send_invite( session, tmp, FALSE, buddy_alias, group_name, message ); + g_free( tmp ); + } } else mxit_send_invite( session, buddy_name, TRUE, buddy_alias, group_name, message );