diff options
author | Luke Leighton <lkcl@samba.org> | 1999-03-23 20:43:44 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-03-23 20:43:44 +0000 |
commit | 6b9cb3a2545226257d698406c1ab3b016464705e (patch) | |
tree | f048c42b460145a8c95bf84407522c3fdaf1a71d /source3/rpc_server | |
parent | 877db70926195076b979821270bcd473c34e7709 (diff) | |
download | samba-6b9cb3a2545226257d698406c1ab3b016464705e.tar.gz samba-6b9cb3a2545226257d698406c1ab3b016464705e.tar.bz2 samba-6b9cb3a2545226257d698406c1ab3b016464705e.zip |
dynamic memory allocation in samr enum dom users. works with 849 entries now.
(This used to be commit 103557e26b071bf1e65e025ef5a52ccdbf483d02)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_samr.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/rpc_server/srv_samr.c b/source3/rpc_server/srv_samr.c index 4f190270dd..0371fbc88c 100644 --- a/source3/rpc_server/srv_samr.c +++ b/source3/rpc_server/srv_samr.c @@ -354,6 +354,16 @@ static void samr_reply_enum_dom_users(SAMR_Q_ENUM_DOM_USERS *q_u, /* store the response in the SMB stream */ samr_io_r_enum_dom_users("", &r_e, rdata, 0); + if (r_e.sam != NULL) + { + free(r_e.sam); + } + + if (r_e.uni_acct_name != NULL) + { + free(r_e.uni_acct_name); + } + DEBUG(5,("samr_enum_dom_users: %d\n", __LINE__)); } |