s3-net: Fix the return codes. 0 on success, -1 on failure
[mat/samba.git] / source3 / utils / net_rpc.c
index 9c2db0a6626a7ef96893b87fc58c1f266e561960..ef017ec9dc02ba6c8e50fdebd4b8330b1e1d3496 100644 (file)
@@ -5062,7 +5062,7 @@ int net_usersidlist(struct net_context *c, int argc, const char **argv)
 
        if (!get_user_tokens(c, &num_tokens, &tokens)) {
                DEBUG(0, ("Could not get the user/sid list\n"));
-               return 0;
+               return -1;
        }
 
        for (i=0; i<num_tokens; i++) {
@@ -5071,7 +5071,7 @@ int net_usersidlist(struct net_context *c, int argc, const char **argv)
        }
 
        SAFE_FREE(tokens);
-       return 1;
+       return 0;
 }
 
 int net_usersidlist_usage(struct net_context *c, int argc, const char **argv)