[gssdp] Fix getting host IP on unix.



commit e9c05ed3268c346fa3ae49269f6e8427c02cc897
Author: Krzesimir Nowak <krnowak openismus com>
Date:   Wed Feb 27 17:32:44 2013 +0100

    Fix getting host IP on unix.
    
    Just don't look further if we found one.

 libgssdp/gssdp-client.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libgssdp/gssdp-client.c b/libgssdp/gssdp-client.c
index 206c3ac..9770035 100644
--- a/libgssdp/gssdp-client.c
+++ b/libgssdp/gssdp-client.c
@@ -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);


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