summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorYaroslav Tykhiy <ytykhiy@gmail.com>2002-11-17 13:38:31 +0000
committerYaroslav Tykhiy <ytykhiy@gmail.com>2002-11-17 13:38:31 +0000
commit15e9ef6643f578d9af4f228c077013bcb834e8c5 (patch)
tree114895cf4caff4431183dbbe33bbeeee23d19c86 /libexec
parenta86c325011dcbd8d27a87127a5494b22a6ccb5b0 (diff)
Notes
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/ftpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index e2e49aae2f63..703da7f72958 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -796,7 +796,7 @@ inithosts()
hrp->hostname = NULL;
insert = 1;
} else {
- if (hrp->hostinfo)
+ if (hrp->hostinfo && hrp->hostinfo != res)
freeaddrinfo(hrp->hostinfo);
insert = 0; /* host already in the chain */
}