[driver] bugfix: only free context for valid vnetroot
This commit is contained in:
parent
f14231fd3b
commit
24ca1023bf
1 changed files with 2 additions and 2 deletions
|
|
@ -3039,8 +3039,8 @@ 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
|
||||||
|
else
|
||||||
SeDeleteClientSecurity(&pVNetRootContext->mount_sec_ctx);
|
SeDeleteClientSecurity(&pVNetRootContext->mount_sec_ctx);
|
||||||
#endif
|
#endif
|
||||||
DbgEx();
|
DbgEx();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue