Found out a good number of NT_STATUS_IS_ERR used the wrong way.
[ira/wip.git] / source3 / rpc_server / srv_util.c
index a97864dbdaee0710cd6b6fd4996d1c14f19d04b9..5040b094a8ce3716ddc508cdc6edfc29ad2e2538 100644 (file)
@@ -129,7 +129,7 @@ NTSTATUS get_alias_user_groups(TALLOC_CTX *ctx, DOM_SID *sid, int *numgroups, ui
 
        fstrcpy(user_name, pdb_get_username(sam_pass));
        grid=pdb_get_group_rid(sam_pass);
-       if (NT_STATUS_IS_ERR(sid_to_gid(pdb_get_group_sid(sam_pass), &gid))) {
+       if (!NT_STATUS_IS_OK(sid_to_gid(pdb_get_group_sid(sam_pass), &gid))) {
                /* this should never happen */
                DEBUG(2,("get_alias_user_groups: sid_to_gid failed!\n"));
                pdb_free_sam(&sam_pass);