summaryrefslogtreecommitdiffstats
path: root/usr.bin/ftp/main.c
diff options
context:
space:
mode:
authorshin <shin@FreeBSD.org>2000-02-12 17:59:06 +0000
committershin <shin@FreeBSD.org>2000-02-12 17:59:06 +0000
commitce3ac581a39661c68d153da77856c5e521e5e322 (patch)
tree5f721cc349fd60fa07883c1edea9d3e50d92730c /usr.bin/ftp/main.c
parent0a2a73d5508f74fa8b717c3afbf2c50e4c14150c (diff)
downloadFreeBSD-src-ce3ac581a39661c68d153da77856c5e521e5e322.zip
FreeBSD-src-ce3ac581a39661c68d153da77856c5e521e5e322.tar.gz
Add more dual stack consideration.
-Should retry as much as possible when dest addr and source addr(specified with -s option) address family missmatch happend Approved by: jkh
Diffstat (limited to 'usr.bin/ftp/main.c')
-rw-r--r--usr.bin/ftp/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c
index 5a1e5e6..48bf77e 100644
--- a/usr.bin/ftp/main.c
+++ b/usr.bin/ftp/main.c
@@ -237,8 +237,7 @@ main(argc, argv)
warnx("%s", strerror(errno));
exit(1);
}
- memcpy(&bindto, res->ai_addr, res->ai_addrlen);
- freeaddrinfo(res);
+ bindres0 = res;
}
/*
OpenPOWER on IntegriCloud