diff options
author | des <des@FreeBSD.org> | 2016-12-14 14:20:32 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2016-12-14 14:20:32 +0000 |
commit | bae35c080ecad74d003339958db6a0d96b2e64a0 (patch) | |
tree | 2fbf8310b547fc77f49aa717f066604b98d0c2f9 /lib/libfetch/ftp.c | |
parent | f1a55d2a3f0f502f1b9f16b4d166349ecf79664d (diff) | |
download | FreeBSD-src-bae35c080ecad74d003339958db6a0d96b2e64a0.zip FreeBSD-src-bae35c080ecad74d003339958db6a0d96b2e64a0.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 dd58c0d..814c4a3 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; |