soc.2008.yahoo: 34d1ed94: identify when packet bounces back and co...
sulabh at soc.pidgin.im
sulabh at soc.pidgin.im
Fri Nov 14 04:25:23 EST 2008
-----------------------------------------------------------------
Revision: 34d1ed94dde7473f812e9a627350c736790c1d33
Ancestor: f46bf53bcf47f56e3fcab09097c6f7c4c047273b
Author: sulabh at soc.pidgin.im
Date: 2008-11-14T09:21:26
Branch: im.pidgin.soc.2008.yahoo
URL: http://d.pidgin.im/viewmtn/revision/info/34d1ed94dde7473f812e9a627350c736790c1d33
Modified files:
libpurple/protocols/yahoo/yahoo.c
ChangeLog:
identify when packet bounces back and contains our own ip instead
of the peer, avoid connecting to ourselves
-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/yahoo.c 3b4e1f9665914bdac77533171a474ca1c49dccf4
+++ libpurple/protocols/yahoo/yahoo.c 938efd36d215a620030ca1f5e4902ecc37c1d07e
@@ -2779,8 +2779,8 @@ static void yahoo_process_p2p(PurpleConn
PurpleAccount *account;
YahooFriend *f;
- /* if status is YAHOO_STATUS_BUSY, don't do anything, peer wont connect */
- if(pkt->status == YAHOO_STATUS_BUSY)
+ /* if status is not 1 ie YAHOO_STATUS_BRB, the packet bounced back, so contains our own ip */
+ if(!(pkt->status == YAHOO_STATUS_BRB))
return ;
while (l) {
More information about the Commits
mailing list