[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,9 +3039,9 @@ NTSTATUS nfs41_FinalizeVNetRoot(
if (pVNetRoot->pNetRoot->Type != NET_ROOT_DISK && if (pVNetRoot->pNetRoot->Type != NET_ROOT_DISK &&
pVNetRoot->pNetRoot->Type != NET_ROOT_WILD) pVNetRoot->pNetRoot->Type != NET_ROOT_WILD)
status = STATUS_NOT_SUPPORTED; status = STATUS_NOT_SUPPORTED;
#ifdef STORE_MOUNT_SEC_CONTEXT #ifdef STORE_MOUNT_SEC_CONTEXT
SeDeleteClientSecurity(&pVNetRootContext->mount_sec_ctx); else
SeDeleteClientSecurity(&pVNetRootContext->mount_sec_ctx);
#endif #endif
DbgEx(); DbgEx();
return status; return status;