namei: clear internal flags in NDREINIT()

same as it is done for NDRESTART()

Approved by:	so
Fixes:  e05e33041c252
Reported and tested by:	pho
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 58b2bd33aff71c0268d99d63e9c83f6544d3beb3)
(cherry picked from commit 53963866f7088dd96f6d56169e6b4fb899277306)
This commit is contained in:
Konstantin Belousov 2025-05-29 00:51:42 +03:00 committed by Franco Fichtner
parent 70f8422d66
commit 5b25bf7161

View file

@ -265,6 +265,7 @@ do { \
filecaps_free(&_ndp->ni_filecaps); \
_ndp->ni_resflags = 0; \
_ndp->ni_startdir = NULL; \
_ndp->ni_cnd.cn_flags &= ~NAMEI_INTERNAL_FLAGS; \
} while (0)
#define NDPREINIT(ndp) do { \