Fix getting host IP on unix.
authorKrzesimir Nowak <krnowak@openismus.com>
Wed, 27 Feb 2013 16:32:44 +0000 (17:32 +0100)
committerKrzesimir Nowak <krnowak@openismus.com>
Wed, 27 Feb 2013 16:32:44 +0000 (17:32 +0100)
Just don't look further if we found one.

libgssdp/gssdp-client.c

index 206c3ac..9770035 100644 (file)
@@ -1304,6 +1304,7 @@ get_host_ip (GSSDPNetworkDevice *device)
                         device->iface_name = g_strdup (ifa->ifa_name);
                 if (device->network == NULL)
                         device->network = g_strdup (q);
+                break;
         }
 
         g_list_free (up_ifaces);