diff options
author | des <des@FreeBSD.org> | 2016-12-14 14:23:25 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2016-12-14 14:23:25 +0000 |
commit | daf577c69300e59c39951e95a3a17d08780a164c (patch) | |
tree | a3fd2467086eb2c9fa8f2d6747c84e8ccac43f3a /lib/libfetch/ftp.c | |
parent | a1cbd960d64b76571d0c8449475c969a56e96cf4 (diff) | |
download | FreeBSD-src-daf577c69300e59c39951e95a3a17d08780a164c.zip FreeBSD-src-daf577c69300e59c39951e95a3a17d08780a164c.tar.gz |
MFH (r308996, r309051, r309738): refactor, avoid repeating DNS requests
Diffstat (limited to 'lib/libfetch/ftp.c')
-rw-r--r-- | lib/libfetch/ftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c index 4e650b9..1a43b56 100644 --- a/lib/libfetch/ftp.c +++ b/lib/libfetch/ftp.c @@ -768,8 +768,8 @@ ftp_transfer(conn_t *conn, const char *oper, const char *file, fetch_info("opening data connection"); bindaddr = getenv("FETCH_BIND_ADDRESS"); if (bindaddr != NULL && *bindaddr != '\0' && - fetch_bind(sd, sa.ss_family, bindaddr) != 0) - goto sysouch; + (e = fetch_bind(sd, sa.ss_family, bindaddr)) != 0) + goto ouch; if (connect(sd, (struct sockaddr *)&sa, sa.ss_len) == -1) goto sysouch; |