libsoup r1272 - in trunk: . libsoup



Author: danw
Date: Mon Apr 13 20:52:07 2009
New Revision: 1272
URL: http://svn.gnome.org/viewvc/libsoup?rev=1272&view=rev

Log:
	Bug 578809 â warnings in soup_address_equal_by_ip

	* libsoup/soup-session.c (get_host_for_message): don't try to look
	up unresolved addresses in the hosts hash; just return NULL. The
	"cancel other messages for the bad host" code in connect_result()
	will loop over the whole queue, including messages with unresolved
	addresses.


Modified:
   trunk/ChangeLog
   trunk/libsoup/soup-session.c

Modified: trunk/libsoup/soup-session.c
==============================================================================
--- trunk/libsoup/soup-session.c	(original)
+++ trunk/libsoup/soup-session.c	Mon Apr 13 20:52:07 2009
@@ -816,6 +816,9 @@
 	SoupSessionHost *host;
 	SoupAddress *addr = soup_message_get_address (msg);
 
+	if (!soup_address_is_resolved (addr))
+		return NULL;
+
 	host = g_hash_table_lookup (priv->hosts, addr);
 	if (host)
 		return host;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]