diff options
m--------- | interface | 0 | ||||
-rw-r--r-- | src/libutil/util.c | 5 |
2 files changed, 3 insertions, 2 deletions
diff --git a/interface b/interface -Subproject 6828f4735bb998f20b00e1b8d144aec5c102d94 +Subproject bb9d7a1072f76ec0ac3b7b9547b20040f39763a diff --git a/src/libutil/util.c b/src/libutil/util.c index ec63cabb9..8d1a6353d 100644 --- a/src/libutil/util.c +++ b/src/libutil/util.c @@ -97,7 +97,8 @@ poll_sync_socket (gint fd, gint timeout, short events) } static gint -make_inet_socket (gint type, struct addrinfo *addr, gboolean is_server, gboolean async, GList **list) +make_inet_socket (gint type, struct addrinfo *addr, gboolean is_server, + gboolean async, GList **list) { gint fd, r, optlen, on = 1, s_error; struct addrinfo *cur; @@ -434,7 +435,7 @@ make_universal_sockets_list (const gchar *credits, guint16 port, if ((r = getaddrinfo (credits, portbuf, &hints, &res)) == 0) { r = make_inet_socket (type, res, is_server, async, &result); freeaddrinfo (res); - if (r == -1) { + if (result == NULL) { goto err; } } |