pidgin: 52fb5cb4: Normalize the remote passport before sen...

qulogic at pidgin.im qulogic at pidgin.im
Wed May 12 01:21:57 EDT 2010


-----------------------------------------------------------------
Revision: 52fb5cb4cd8795906a7313dd5edde763a4848a3e
Ancestor: 9489c072c16eaf9f031955a64fc501f8c80bd61e
Author: qulogic at pidgin.im
Date: 2010-05-12T05:00:06
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/52fb5cb4cd8795906a7313dd5edde763a4848a3e

Modified files:
        libpurple/protocols/msn/slplink.c

ChangeLog: 

Normalize the remote passport before sending a P2P message. If it's not
lowercase, then the switchboard will reject it, causing a whole lot of
extra network traffic as Pidgin attempts to resend the same (incorrect)
message.

Fixes #11532.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/slplink.c	a96a53635871463de0177e5a99fe4ebdc2c7d577
+++ libpurple/protocols/msn/slplink.c	87ada76abf90c44e615679efc5f8128bb941bba1
@@ -383,6 +383,7 @@ msn_slplink_release_slpmsg(MsnSlpLink *s
 msn_slplink_release_slpmsg(MsnSlpLink *slplink, MsnSlpMessage *slpmsg)
 {
 	MsnMessage *msg;
+	const char *passport;
 
 	slpmsg->msg = msg = msn_message_new_msnslp();
 
@@ -421,7 +422,8 @@ msn_slplink_release_slpmsg(MsnSlpLink *s
 
 	msg->msnslp_header.total_size = slpmsg->size;
 
-	msn_message_set_attr(msg, "P2P-Dest", slplink->remote_user);
+	passport = purple_normalize(slplink->session->account, slplink->remote_user);
+	msn_message_set_attr(msg, "P2P-Dest", passport);
 
 	msg->ack_cb = msg_ack;
 	msg->nak_cb = msg_nak;


More information about the Commits mailing list