Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a5904a
)
Doc: Note from Dave Dykstra that getaddrinfo calls must be paired with
author
Martin Pool
<mbp@samba.org>
Sat, 16 Mar 2002 08:23:08 +0000
(08:23 +0000)
committer
Martin Pool
<mbp@samba.org>
Sat, 16 Mar 2002 08:23:08 +0000
(08:23 +0000)
freeaddrinfo().
socket.c
patch
|
blob
|
blame
|
history
diff --git
a/socket.c
b/socket.c
index
ccc79cf
..
acf6234
100644
(file)
--- a/
socket.c
+++ b/
socket.c
@@
-119,6
+119,8
@@
int try_bind_local(int s,
return -1;
}
+ /* FIXME: Call freeaddrinfo() on all return paths! */
+
for (r = bres_all; r; r = r->ai_next) {
if (bind(s, r->ai_addr, r->ai_addrlen) == -1)
continue;
@@
-329,7
+331,8
@@
static int open_socket_in(int type, int port, const char *bind_address,
close(s);
continue;
}
-
+
+ /* FIXME: Call freeaddrinfo? */
return s;
}