diff options
author | Wayne Davison <wayned@samba.org> | 2011-07-11 18:15:51 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2011-07-11 18:15:51 -0700 |
commit | fbf4c261f4f71042da71c91acd0c26c48c697085 (patch) | |
tree | 4492ea4ed4e0afbd4aa90fcc71937f5e271192eb /socket.c | |
parent | 425747c2f371d8ec071ac3003c5d72c04185733c (diff) | |
download | rsync-fbf4c261f4f71042da71c91acd0c26c48c697085.tar.gz |
Move freeaddrinfo() call after failure-reporting loop.
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -299,7 +299,6 @@ int open_socket_out(char *host, int port, const char *bind_addr, } break; } - freeaddrinfo(res0); if (s < 0) { char buf[2048]; @@ -313,6 +312,7 @@ int open_socket_out(char *host, int port, const char *bind_addr, s = -1; } + freeaddrinfo(res0); free(errnos); return s; |