[WSD] Fix missing return value during duplication causing
authorftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 7 Nov 2005 19:21:55 +0000 (19:21 +0000)
committerftillier <ftillier@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 7 Nov 2005 19:21:55 +0000 (19:21 +0000)
duplication to always fail.

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@145 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/wsd/user/ibsp_duplicate.c

index 4d093bf..46fd724 100644 (file)
@@ -62,6 +62,8 @@ setup_duplicate_socket(
        ib_net64_t dest_port_guid;\r
        ib_path_rec_t path_rec;\r
 \r
+       IBSP_ENTER( IBSP_DBG_CONN );\r
+\r
        CL_ASSERT( socket_info->socket_state == IBSP_CREATE );\r
 \r
        fzprint(("%s():%d:0x%x:0x%x: socket=0x%p dwProcessId=0x%x\n", __FUNCTION__,\r
@@ -185,6 +187,7 @@ err2:
        }\r
        else\r
        {\r
+               ret = 0;\r
                cl_spinlock_release( &socket_info->mutex );\r
        }\r
 \r
@@ -217,6 +220,8 @@ prepare_duplicate_socket(
        DWORD identifier = 0;\r
        struct disconnect_reason reason;\r
 \r
+       IBSP_ENTER( IBSP_DBG_CONN );\r
+\r
        fzprint(("%s():%d:0x%x:0x%x: socket=0x%p dwProcessId=0x%x \n", __FUNCTION__,\r
                         __LINE__, GetCurrentProcessId(),\r
                         GetCurrentThreadId(), socket_info, dwProcessId));\r