summaryrefslogtreecommitdiff
path: root/sys/nfs
diff options
context:
space:
mode:
authorIan Lepore <ian@FreeBSD.org>2016-03-27 22:21:34 +0000
committerIan Lepore <ian@FreeBSD.org>2016-03-27 22:21:34 +0000
commiteb2d4f022c965f6138dd13989cc378a5f8283ab7 (patch)
tree8863a9d3f9f5df2ba69690c33705f173128ae385 /sys/nfs
parentfaaf0c6eaab04e65c40aa1d5b9ca6e319461a256 (diff)
downloadsrc-test-eb2d4f022c965f6138dd13989cc378a5f8283ab7.tar.gz
src-test-eb2d4f022c965f6138dd13989cc378a5f8283ab7.zip
Notes
Diffstat (limited to 'sys/nfs')
-rw-r--r--sys/nfs/bootp_subr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/nfs/bootp_subr.c b/sys/nfs/bootp_subr.c
index 7b32802b91831..3569d0c38950e 100644
--- a/sys/nfs/bootp_subr.c
+++ b/sys/nfs/bootp_subr.c
@@ -1478,6 +1478,8 @@ bootpc_decode_reply(struct nfsv3_diskless *nd, struct bootpc_ifcontext *ifctx,
if (p == NULL) {
p = bootpc_tag(&gctx->tag, &ifctx->reply, ifctx->replylen,
TAG_ROOT);
+ if (p != NULL)
+ ifctx->gotrootpath = 1;
}
#ifdef ROOTDEVNAME
if ((p == NULL || (boothowto & RB_DFLTROOT) != 0) &&
@@ -1497,7 +1499,6 @@ bootpc_decode_reply(struct nfsv3_diskless *nd, struct bootpc_ifcontext *ifctx,
}
printf("rootfs %s ", p);
gctx->gotrootpath = 1;
- ifctx->gotrootpath = 1;
gctx->setrootfs = ifctx;
p = bootpc_tag(&gctx->tag, &ifctx->reply,