aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav Tykhiy <ytykhiy@gmail.com>2002-11-11 07:31:48 +0000
committerYaroslav Tykhiy <ytykhiy@gmail.com>2002-11-11 07:31:48 +0000
commit1f75c13ee00d37b5b2e658404e7d2f3338991d3a (patch)
treeb604295adce277e1f0602c3b16b8007aeb4183db
parent6372d61e3ef515e6306b819bcfbfa0f6cd7591d8 (diff)
Notes
-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 05d418895007..d64bce4deee4 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -785,7 +785,7 @@ inithosts(void)
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 */
}