libsoup r1040 - in branches/libsoup-2.4: . libsoup



Author: danw
Date: Tue Jan 15 17:03:31 2008
New Revision: 1040
URL: http://svn.gnome.org/viewvc/libsoup?rev=1040&view=rev

Log:
	* libsoup/soup-dns.c (resolve_status): Fix the logic here


Modified:
   branches/libsoup-2.4/ChangeLog
   branches/libsoup-2.4/libsoup/soup-dns.c

Modified: branches/libsoup-2.4/libsoup/soup-dns.c
==============================================================================
--- branches/libsoup-2.4/libsoup/soup-dns.c	(original)
+++ branches/libsoup-2.4/libsoup/soup-dns.c	Tue Jan 15 17:03:31 2008
@@ -480,7 +480,7 @@
 static inline guint
 resolve_status (SoupDNSCacheEntry *entry, GCancellable *cancellable)
 {
-	if (entry->resolved)
+	if (entry->hostname && entry->sockaddr)
 		return SOUP_STATUS_OK;
 	else if (g_cancellable_is_cancelled (cancellable))
 		return SOUP_STATUS_CANCELLED;



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