aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/sys/namei.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/namei.h b/sys/sys/namei.h
index 053a64367ff9..8ae9f0d786d6 100644
--- a/sys/sys/namei.h
+++ b/sys/sys/namei.h
@@ -272,6 +272,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 { \