changeset 26241:ffb0d441d0a3

identify when packet bounces back and contains our own ip instead of the peer, avoid connecting to ourselves
author Sulabh Mahajan <sulabh@soc.pidgin.im>
date Fri, 14 Nov 2008 09:21:26 +0000
parents e524694e3c06
children 97c420d62381
files libpurple/protocols/yahoo/yahoo.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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) {