diff options
-rw-r--r-- | libexec/ftpd/ftpd.c | 3 |
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) |