[WSD] Fix a bug on duplicate socket.
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 14 Feb 2007 16:31:26 +0000 (16:31 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 14 Feb 2007 16:31:26 +0000 (16:31 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@592 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/wsd/user/ibsp_duplicate.c

index d22a109..bc8a148 100644 (file)
@@ -280,13 +280,11 @@ IBSPDuplicateSocket(
                cl_spinlock_release( &socket_info->mutex );\r
                IBSP_ERROR_EXIT( ("DuplicateHandle failed with %d\n", GetLastError()) );\r
                CloseHandle( h_target_process );\r
-               CloseHandle( h_dup_info );\r
                *lpErrno = WSAENETDOWN;\r
                return SOCKET_ERROR;\r
        }\r
 \r
        CloseHandle( h_target_process );\r
-       CloseHandle( h_dup_info );\r
 \r
        CL_ASSERT( !((ULONG_PTR)h_target_dup_info >> 32) );\r
        lpProtocolInfo->dwProviderReserved = (DWORD)(ULONG_PTR)h_target_dup_info;\r