diff options
-rw-r--r-- | source3/utils/net_rpc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c index 1a5e98b34e..27cc2a0918 100644 --- a/source3/utils/net_rpc.c +++ b/source3/utils/net_rpc.c @@ -1009,7 +1009,7 @@ rpc_user_info_internals(const DOM_SID *domain_sid, const char *domain_name, /* Look up rids */ - if (rids) { + if (num_rids) { rids = TALLOC_ARRAY(mem_ctx, uint32, num_rids); for (i = 0; i < num_rids; i++) @@ -1028,9 +1028,6 @@ rpc_user_info_internals(const DOM_SID *domain_sid, const char *domain_name, for (i = 0; i < num_names; i++) printf("%s\n", names[i]); } - else { - printf("no groups\n"); - } done: return result; } |