aboutsummaryrefslogtreecommitdiff
path: root/libexec/ftpd
diff options
context:
space:
mode:
authorYaroslav Tykhiy <ytykhiy@gmail.com>2002-07-17 19:29:25 +0000
committerYaroslav Tykhiy <ytykhiy@gmail.com>2002-07-17 19:29:25 +0000
commit233c0f66439865e201e7bbb1a7b9aff7cad2a18b (patch)
treeee8ad659b4e84e75abeeeb81b209c2f43d1222fb /libexec/ftpd
parent2d014fd7f8266a1ede78eabf66df6b3fcca5ebfe (diff)
Notes
Diffstat (limited to 'libexec/ftpd')
-rw-r--r--libexec/ftpd/ftpd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index f669020f123a..e250571ead29 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -829,7 +829,8 @@ inithosts(void)
lhrp->next = hrp;
lhrp = hrp;
}
- freehostent(hp);
+ if (hp)
+ freehostent(hp);
}
nextline:
if (mp)