# HG changeset patch # User Sulabh Mahajan # Date 1226654486 0 # Node ID ffb0d441d0a3ec92245a99f47319df779e53aa7a # Parent e524694e3c06ca4f12a2ca3789d8916a0941bd1f identify when packet bounces back and contains our own ip instead of the peer, avoid connecting to ourselves diff -r e524694e3c06 -r ffb0d441d0a3 libpurple/protocols/yahoo/yahoo.c --- a/libpurple/protocols/yahoo/yahoo.c Fri Nov 14 08:08:59 2008 +0000 +++ b/libpurple/protocols/yahoo/yahoo.c Fri Nov 14 09:21:26 2008 +0000 @@ -2779,8 +2779,8 @@ 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) {