GNetworkService: fix a small bug
authorDan Winship <danw@gnome.org>
Thu, 28 Oct 2010 19:17:17 +0000 (15:17 -0400)
committerDan Winship <danw@gnome.org>
Thu, 28 Oct 2010 19:17:17 +0000 (15:17 -0400)
Fix a small bug in the synchronous lookup code introduced in the fix
for bug 629274

gio/gnetworkservice.c

index 58671a4..c07d57a 100644 (file)
@@ -435,7 +435,7 @@ g_network_service_address_enumerator_next (GSocketAddressEnumerator  *enumerator
             g_clear_error (&my_error);
         }
 
-      if (!targets)
+      if (my_error)
         {
           g_propagate_error (error, my_error);
           return NULL;