avoid uninitialised var use in nfs_serv.c error paths
authorjsg <jsg@openbsd.org>
Sat, 17 Aug 2024 07:02:13 +0000 (07:02 +0000)
committerjsg <jsg@openbsd.org>
Sat, 17 Aug 2024 07:02:13 +0000 (07:02 +0000)
commit98d98fd92204062c4ece197a39f8a8cb6e9b5c1b
treefc341b2503e9a8442b38ea1cc7cf4ea94027251f
parent8172eb65563779bad4856e1d62bd9aa1b6acf488
avoid uninitialised var use in nfs_serv.c error paths

some functions have a nfsmout label with code that assumes NDINIT has
been called

nfsrv_rename has two NDINIT calls, the nfsmout code assumes both are
setup but is only jumped to when none/one is setup

found with llvm scan-build
checked by deraadt@ beck@, ok miod@
sys/nfs/nfs_serv.c