diff options
author | Luke Leighton <lkcl@samba.org> | 1998-09-25 23:14:20 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-09-25 23:14:20 +0000 |
commit | 4b9e0941b9440d25d253dab62633858c2a5117c2 (patch) | |
tree | 4d95e5f9b683ad5ab43984472a0d75a900beb957 /source3/rpcclient | |
parent | c1bbd1868f90b672ab88e53e039732854dca1f8d (diff) | |
download | samba-4b9e0941b9440d25d253dab62633858c2a5117c2.tar.gz samba-4b9e0941b9440d25d253dab62633858c2a5117c2.tar.bz2 samba-4b9e0941b9440d25d253dab62633858c2a5117c2.zip |
rpcclient: got samr command "enumusers -g -u" working
(This used to be commit 3a00023efedb34684bd45bd8a562f07a9880f1ad)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_samr.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c index f8710d548d..fd7f0e14ac 100644 --- a/source3/rpcclient/cmd_samr.c +++ b/source3/rpcclient/cmd_samr.c @@ -177,7 +177,7 @@ void cmd_sam_enum_users(struct client_info *info) res = res ? do_samr_enum_dom_users(smb_cli, &info->dom.samr_pol_open_domain, num_entries, unk_0, acb_mask, unk_1, 0xffff, - info->dom.sam, &info->dom.num_sam_entries) : False; + &info->dom.sam, &info->dom.num_sam_entries) : False; if (res && info->dom.num_sam_entries == 0) { @@ -240,6 +240,11 @@ void cmd_sam_enum_users(struct client_info *info) /* close the session */ cli_nt_session_close(smb_cli); + if (info->dom.sam != NULL) + { + free(info->dom.sam); + } + if (res) { DEBUG(5,("cmd_sam_enum_users: succeeded\n")); |