summaryrefslogtreecommitdiff
path: root/sbin/mountd
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2023-03-01 23:27:47 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2023-03-01 23:27:47 +0000
commit3767797a5a84ab335e05501c7aa7694e74cce253 (patch)
tree18ce82209eadd5af2b7a823bd89fdcfbca5a73d3 /sbin/mountd
parentfb01bb6e293eb6e2eaba70b8122d49d367f35dab (diff)
Fix potentially uninitialized use of variable fsb on error.
OK mbuhl@
Diffstat (limited to 'sbin/mountd')
-rw-r--r--sbin/mountd/mountd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/mountd/mountd.c b/sbin/mountd/mountd.c
index 1f4e5d40145..634b67fc1fc 100644
--- a/sbin/mountd/mountd.c
+++ b/sbin/mountd/mountd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mountd.c,v 1.89 2020/08/06 17:57:32 naddy Exp $ */
+/* $OpenBSD: mountd.c,v 1.90 2023/03/01 23:27:46 millert Exp $ */
/* $NetBSD: mountd.c,v 1.31 1996/02/18 11:57:53 fvdl Exp $ */
/*
@@ -793,7 +793,7 @@ mntsrv(struct svc_req *rqstp, SVCXPRT *transp)
/* Check in the exports list */
sigprocmask(SIG_BLOCK, &sighup_mask, NULL);
- ep = ex_search(&fsb.f_fsid);
+ ep = bad ? NULL : ex_search(&fsb.f_fsid);
hostset = defset = 0;
if (ep && (chk_host(ep->ex_defdir, saddr, &defset, &hostset) ||
((dp = dirp_search(ep->ex_dirl, dirpath)) &&