summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2002-07-17 19:29:25 +0000
committeryar <yar@FreeBSD.org>2002-07-17 19:29:25 +0000
commit0e4b89607d67b97b6a546982fb34321f8e52aa87 (patch)
treeee8ad659b4e84e75abeeeb81b209c2f43d1222fb /libexec/ftpd
parentd1310fef1399149a2b8c5524c3309785f61a96cb (diff)
downloadFreeBSD-src-0e4b89607d67b97b6a546982fb34321f8e52aa87.zip
FreeBSD-src-0e4b89607d67b97b6a546982fb34321f8e52aa87.tar.gz
Avoid passing NULL to freehostent(3).
MFC after: 1 week
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