[gssdp] bionic: Fill host_addr
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp] bionic: Fill host_addr
- Date: Sun, 11 Nov 2018 06:19:55 +0000 (UTC)
commit beeb042e7495baf476f6b62f644792d81c7c9b14
Author: Jens Georg <mail jensge org>
Date: Sun Nov 11 07:17:32 2018 +0100
bionic: Fill host_addr
host_mask is still missing, so it won't work.
libgssdp/gssdp-net-bionic.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libgssdp/gssdp-net-bionic.c b/libgssdp/gssdp-net-bionic.c
index 5168cdb..a24aa7f 100644
--- a/libgssdp/gssdp-net-bionic.c
+++ b/libgssdp/gssdp-net-bionic.c
@@ -258,6 +258,7 @@ gssdp_net_get_host_ip (GSSDPNetworkDevice *device)
device->host_ip = NULL;
continue;
}
+ device->host_addr = g_inet_address_new_from_string (device->host_ip);
ip = address->sin_addr.s_addr;
@@ -283,10 +284,9 @@ gssdp_net_get_host_ip (GSSDPNetworkDevice *device)
"Failed to get nw for: %s, %s",
iface->ifr_name, strerror (errno));
- g_free (device->host_ip);
- device->host_ip = NULL;
- g_free (device->network);
- device->network = NULL;
+ g_clear_pointer (&device->host_ip, g_free);
+ g_clear_pointer (&device->network, g_free);
+ g_clear_object (&device->host_addr);
continue;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]