[DAPL2] DAPL Counters & 2.0.3 extensions to support counter retrieval.
[mirror/winof/.git] / ulp / dapl2 / dapl / common / dapl_ep_disconnect.c
index 58730b8..dcd265f 100644 (file)
@@ -75,7 +75,6 @@ dapl_ep_disconnect (
                 "dapl_ep_disconnect (%p, %x)\n",\r
                  ep_handle,\r
                  disconnect_flags);\r
-    DAPL_CNTR(DCNT_EP_DISCONNECT);\r
 \r
     ep_ptr = (DAPL_EP *) ep_handle;\r
 \r
@@ -87,6 +86,7 @@ dapl_ep_disconnect (
        dat_status = DAT_ERROR (DAT_INVALID_HANDLE, DAT_INVALID_HANDLE_EP);\r
        goto bail;\r
     }\r
+    DAPL_CNTR(ep_ptr, DCNT_EP_DISCONNECT);\r
 \r
     /*\r
      * Do the verification of parameters and the state change\r