[IBAL] ib_dereg_svc check that the handle is from the right type
[mirror/winof/.git] / 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