[driver] bugfix: only free context for valid vnetroot

This commit is contained in:
Olga Kornievskaia 2011-12-20 15:19:01 -05:00
parent f14231fd3b
commit 24ca1023bf

View file

@ -3039,8 +3039,8 @@ 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
else
SeDeleteClientSecurity(&pVNetRootContext->mount_sec_ctx);
#endif
DbgEx();