diff options
author | yar <yar@FreeBSD.org> | 2002-07-17 19:29:25 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2002-07-17 19:29:25 +0000 |
commit | 0e4b89607d67b97b6a546982fb34321f8e52aa87 (patch) | |
tree | ee8ad659b4e84e75abeeeb81b209c2f43d1222fb /libexec | |
parent | d1310fef1399149a2b8c5524c3309785f61a96cb (diff) | |
download | FreeBSD-src-0e4b89607d67b97b6a546982fb34321f8e52aa87.zip FreeBSD-src-0e4b89607d67b97b6a546982fb34321f8e52aa87.tar.gz |
Avoid passing NULL to freehostent(3).
MFC after: 1 week
Diffstat (limited to 'libexec')
-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) |