aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/ftp
diff options
context:
space:
mode:
authorYoshinobu Inoue <shin@FreeBSD.org>2000-02-28 18:37:07 +0000
committerYoshinobu Inoue <shin@FreeBSD.org>2000-02-28 18:37:07 +0000
commit3fdf7be445d5014c5542daf7fd08a53bb6a49114 (patch)
tree169fafe95f4fbf6745d556db1d72afac39c94561 /usr.bin/ftp
parent6b5c2dd6a16a5be3e619662c3cbee9455209ddeb (diff)
Notes
Diffstat (limited to 'usr.bin/ftp')
-rw-r--r--usr.bin/ftp/ftp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/ftp/ftp.c b/usr.bin/ftp/ftp.c
index d374fdd3a2ed..6e0e7d2f6478 100644
--- a/usr.bin/ftp/ftp.c
+++ b/usr.bin/ftp/ftp.c
@@ -134,11 +134,10 @@ hookup(host0, port)
}
res = res0;
- if (res->ai_canonname) {
+ if (res->ai_canonname)
(void) strncpy(hostnamebuf, res->ai_canonname,
sizeof(hostnamebuf));
- hostname = hostnamebuf;
- }
+ hostname = hostnamebuf;
while (1) {
s = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
if (s < 0) {