diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-06-23 23:34:15 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-06-23 23:34:15 +0000 |
commit | fe125ee2613700215bf14884267b9aa982a4aa55 (patch) | |
tree | b2b3a6951bbeb993dc1fd9bafca5053501d1ed99 /sbin | |
parent | 61f62dcfd359eb4984d4ee8268206b819b854d00 (diff) |
handle (,,dom); joerg
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mountd/mountd.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sbin/mountd/mountd.c b/sbin/mountd/mountd.c index c96fc628a00..b346ebb2852 100644 --- a/sbin/mountd/mountd.c +++ b/sbin/mountd/mountd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mountd.c,v 1.24 1998/03/01 20:06:30 millert Exp $ */ +/* $OpenBSD: mountd.c,v 1.25 1998/06/23 23:34:14 deraadt Exp $ */ /* $NetBSD: mountd.c,v 1.31 1996/02/18 11:57:53 fvdl Exp $ */ /* @@ -862,7 +862,12 @@ get_exportlist() grp = grp->gr_next; } if (netgrp) { - if (get_host(hst, grp, tgrp)) { + if (hst == NULL) { + syslog(LOG_ERR, + "NULL hostname in netgroup %s, skipping", + cp); + grp->gr_type = GT_IGNORE; + } else if (get_host(hst, grp, tgrp)) { syslog(LOG_ERR, "Unknown host (%s) in netgroup %s", hst, cp); |