summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd
diff options
context:
space:
mode:
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 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)
OpenPOWER on IntegriCloud