projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[kdbus] Add new library API for common tasks on dbus/kdbus
[platform/upstream/glib.git]
/
gio
/
ginetsocketaddress.c
diff --git
a/gio/ginetsocketaddress.c
b/gio/ginetsocketaddress.c
index
6301e92
..
5cf26f7
100644
(file)
--- a/
gio/ginetsocketaddress.c
+++ b/
gio/ginetsocketaddress.c
@@
-361,7
+361,9
@@
g_inet_socket_address_new_from_string (const char *address,
if (G_UNLIKELY (g_once_init_enter (&hints)))
{
if (G_UNLIKELY (g_once_init_enter (&hints)))
{
+ hints_struct.ai_family = AF_UNSPEC;
hints_struct.ai_socktype = SOCK_STREAM;
hints_struct.ai_socktype = SOCK_STREAM;
+ hints_struct.ai_protocol = 0;
hints_struct.ai_flags = AI_NUMERICHOST;
g_once_init_leave (&hints, &hints_struct);
}
hints_struct.ai_flags = AI_NUMERICHOST;
g_once_init_leave (&hints, &hints_struct);
}
@@
-447,7
+449,7
@@
g_inet_socket_address_get_port (GInetSocketAddress *address)
* Gets the `sin6_flowinfo` field from @address,
* which must be an IPv6 address.
*
* Gets the `sin6_flowinfo` field from @address,
* which must be an IPv6 address.
*
- * Return
value
: the flowinfo field
+ * Return
s
: the flowinfo field
*
* Since: 2.32
*/
*
* Since: 2.32
*/
@@
-467,7
+469,7
@@
g_inet_socket_address_get_flowinfo (GInetSocketAddress *address)
* Gets the `sin6_scope_id` field from @address,
* which must be an IPv6 address.
*
* Gets the `sin6_scope_id` field from @address,
* which must be an IPv6 address.
*
- * Return
value
: the scope id field
+ * Return
s
: the scope id field
*
* Since: 2.32
*/
*
* Since: 2.32
*/