From 572c69e3d0519eb96ff831e79b0845b34218e995 Mon Sep 17 00:00:00 2001 From: Olga Kornievskaia Date: Mon, 31 Oct 2011 15:25:28 -0400 Subject: [PATCH] need to close vnetroot handle in create_connection --- sys/nfs41_driver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/nfs41_driver.c b/sys/nfs41_driver.c index 3970bcd..90317fa 100644 --- a/sys/nfs41_driver.c +++ b/sys/nfs41_driver.c @@ -1945,7 +1945,7 @@ nfs41_CreateConnection ( ) { NTSTATUS status = STATUS_SUCCESS; - HANDLE Handle; + HANDLE Handle = INVALID_HANDLE_VALUE; PLOWIO_CONTEXT LowIoContext = &RxContext->LowIoContext; PVOID Buffer = LowIoContext->ParamsFor.IoCtl.pInputBuffer; ULONG BufferLen = LowIoContext->ParamsFor.IoCtl.InputBufferLength; @@ -1970,6 +1970,8 @@ nfs41_CreateConnection ( goto out; status = GetConnectionHandle(&FileName, EaBuffer, EaLength, &Handle); + if (!status && Handle != INVALID_HANDLE_VALUE) + ZwClose(Handle); out: DbgEx(); return status;