diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2000-08-16 09:12:33 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2000-08-16 09:12:33 +0000 |
commit | 2310b8c624777e5265b142b0a3d04c23b219dd08 (patch) | |
tree | 02302d729b9b8245e70999ff7f5cdbf208b73d76 /libexec | |
parent | ebe96675ee3b55a01f5e317b1399af2313dea8c8 (diff) | |
download | src-test2-2310b8c624777e5265b142b0a3d04c23b219dd08.tar.gz src-test2-2310b8c624777e5265b142b0a3d04c23b219dd08.zip |
Notes
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/ftpd/ftpd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index 0471c2278cf2..8c091225ad5f 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -408,8 +408,6 @@ main(argc, argv, envp) error = getaddrinfo(bindname, "ftp", &hints, &res); } - if (error == 0 && res->ai_addr != NULL) - family = res->ai_addr->sa_family; } if (error) { syslog(LOG_ERR, gai_strerror(error)); @@ -420,7 +418,8 @@ main(argc, argv, envp) if (res->ai_addr == NULL) { syslog(LOG_ERR, "-a %s: getaddrinfo failed", hostname); exit(1); - } + } else + family = res->ai_addr->sa_family; /* * Open a socket, bind it to the FTP port, and start * listening. |