From 24ca1023bfb6ab39694d52cf18bd9d9da2842941 Mon Sep 17 00:00:00 2001 From: Olga Kornievskaia Date: Tue, 20 Dec 2011 15:19:01 -0500 Subject: [PATCH] [driver] bugfix: only free context for valid vnetroot --- sys/nfs41_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/nfs41_driver.c b/sys/nfs41_driver.c index 5bc1f57..bda8fa9 100644 --- a/sys/nfs41_driver.c +++ b/sys/nfs41_driver.c @@ -3039,9 +3039,9 @@ NTSTATUS nfs41_FinalizeVNetRoot( if (pVNetRoot->pNetRoot->Type != NET_ROOT_DISK && pVNetRoot->pNetRoot->Type != NET_ROOT_WILD) status = STATUS_NOT_SUPPORTED; - #ifdef STORE_MOUNT_SEC_CONTEXT - SeDeleteClientSecurity(&pVNetRootContext->mount_sec_ctx); + else + SeDeleteClientSecurity(&pVNetRootContext->mount_sec_ctx); #endif DbgEx(); return status;