From 0e4b89607d67b97b6a546982fb34321f8e52aa87 Mon Sep 17 00:00:00 2001 From: yar Date: Wed, 17 Jul 2002 19:29:25 +0000 Subject: Avoid passing NULL to freehostent(3). MFC after: 1 week --- libexec/ftpd/ftpd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libexec/ftpd') diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index f669020..e250571 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) -- cgit v1.1