[IBAL] ib_dereg_svc check that the handle is from the right type
authorsleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 11 Sep 2006 07:03:01 +0000 (07:03 +0000)
committersleybo <sleybo@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 11 Sep 2006 07:03:01 +0000 (07:03 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@487 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/al/al_reg_svc.c

index 42911e3..8c0debe 100644 (file)
@@ -344,7 +344,7 @@ ib_dereg_svc(
 {\r
        AL_ENTER( AL_DBG_SA_REQ );\r
 \r
-       if( !h_reg_svc )\r
+       if( AL_OBJ_INVALID_HANDLE( h_reg_svc, AL_OBJ_TYPE_H_SA_REG) )\r
        {\r
                AL_PRINT_EXIT( TRACE_LEVEL_ERROR, AL_DBG_ERROR, ("IB_INVALID_HANDLE\n") );\r
                return IB_INVALID_HANDLE;\r