diff options
author | shin <shin@FreeBSD.org> | 2000-02-12 17:59:06 +0000 |
---|---|---|
committer | shin <shin@FreeBSD.org> | 2000-02-12 17:59:06 +0000 |
commit | ce3ac581a39661c68d153da77856c5e521e5e322 (patch) | |
tree | 5f721cc349fd60fa07883c1edea9d3e50d92730c /usr.bin/ftp/main.c | |
parent | 0a2a73d5508f74fa8b717c3afbf2c50e4c14150c (diff) | |
download | FreeBSD-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.c | 3 |
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; } /* |