summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-08-29 17:41:32 +0000
committerderaadt <deraadt@openbsd.org>1996-08-29 17:41:32 +0000
commit0fc5c580a5cdbcf64e98c3570635e6196faa76f7 (patch)
tree99fba65f32fd7fab19cca9d5c6efa641bf8c62ea
parentlkm ddb symbol table loading. done during the middle ages by jtkohl, merged (diff)
downloadwireguard-openbsd-0fc5c580a5cdbcf64e98c3570635e6196faa76f7.tar.xz
wireguard-openbsd-0fc5c580a5cdbcf64e98c3570635e6196faa76f7.zip
bogus exports entry crash; from candy@fct.kgc.co.jp
-rw-r--r--sbin/mountd/mountd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/mountd/mountd.c b/sbin/mountd/mountd.c
index 941b2fefcc4..0215e51020a 100644
--- a/sbin/mountd/mountd.c
+++ b/sbin/mountd/mountd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mountd.c,v 1.8 1996/07/02 10:43:56 deraadt Exp $ */
+/* $OpenBSD: mountd.c,v 1.9 1996/08/29 17:41:32 deraadt Exp $ */
/* $NetBSD: mountd.c,v 1.31 1996/02/18 11:57:53 fvdl Exp $ */
/*
@@ -1377,7 +1377,8 @@ get_host(cp, grp, tgrp)
/* only insert each host onto the list once */
for (checkgrp = tgrp; checkgrp; checkgrp = checkgrp->gr_next) {
- if (checkgrp->gr_ptr.gt_hostent != NULL &&
+ if (checkgrp->gr_type == GT_HOST &&
+ checkgrp->gr_ptr.gt_hostent != NULL &&
!strcmp(checkgrp->gr_ptr.gt_hostent->h_name, hp->h_name)) {
grp->gr_type = GT_IGNORE;
return (0);