need to close vnetroot handle in create_connection
This commit is contained in:
parent
2642d0c459
commit
572c69e3d0
1 changed files with 3 additions and 1 deletions
|
|
@ -1945,7 +1945,7 @@ nfs41_CreateConnection (
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
NTSTATUS status = STATUS_SUCCESS;
|
NTSTATUS status = STATUS_SUCCESS;
|
||||||
HANDLE Handle;
|
HANDLE Handle = INVALID_HANDLE_VALUE;
|
||||||
PLOWIO_CONTEXT LowIoContext = &RxContext->LowIoContext;
|
PLOWIO_CONTEXT LowIoContext = &RxContext->LowIoContext;
|
||||||
PVOID Buffer = LowIoContext->ParamsFor.IoCtl.pInputBuffer;
|
PVOID Buffer = LowIoContext->ParamsFor.IoCtl.pInputBuffer;
|
||||||
ULONG BufferLen = LowIoContext->ParamsFor.IoCtl.InputBufferLength;
|
ULONG BufferLen = LowIoContext->ParamsFor.IoCtl.InputBufferLength;
|
||||||
|
|
@ -1970,6 +1970,8 @@ nfs41_CreateConnection (
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
status = GetConnectionHandle(&FileName, EaBuffer, EaLength, &Handle);
|
status = GetConnectionHandle(&FileName, EaBuffer, EaLength, &Handle);
|
||||||
|
if (!status && Handle != INVALID_HANDLE_VALUE)
|
||||||
|
ZwClose(Handle);
|
||||||
out:
|
out:
|
||||||
DbgEx();
|
DbgEx();
|
||||||
return status;
|
return status;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue