summaryrefslogtreecommitdiff
path: root/source3/rpc_client/init_samr.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-06-27 17:26:41 -0700
committerJeremy Allison <jra@samba.org>2008-06-27 17:26:41 -0700
commitf083c1f57e2aad01fd6a3666c36abd2a71012f7b (patch)
treee53531bd7d56b269e6295db34401f25543af1af8 /source3/rpc_client/init_samr.c
parent23e4a41362375370f1dbe16e47199bc996e3470c (diff)
downloadsamba-f083c1f57e2aad01fd6a3666c36abd2a71012f7b.tar.gz
samba-f083c1f57e2aad01fd6a3666c36abd2a71012f7b.tar.bz2
samba-f083c1f57e2aad01fd6a3666c36abd2a71012f7b.zip
Fix bug #5568 net rpc trustdom add broken !
net rpc trustdom add was broken. The default 10second timeout can be too short to create an account on a Samba DC (calling out to a script), error message reporting was poor, and more importantly the new marshalling code for user_info23 was broken (maps onto a user_info21 but doesn't clear the user_info23 struct before marshalling, leaving an uninitialized size field - give "alloc failure"). Jeremy. (This used to be commit e072b3667e590ba6dd1d9a47fb616a53753fa83e)
Diffstat (limited to 'source3/rpc_client/init_samr.c')
-rw-r--r--source3/rpc_client/init_samr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/rpc_client/init_samr.c b/source3/rpc_client/init_samr.c
index 3b62e7effb..c5d7dcdb13 100644
--- a/source3/rpc_client/init_samr.c
+++ b/source3/rpc_client/init_samr.c
@@ -413,6 +413,7 @@ void init_samr_user_info23(struct samr_UserInfo23 *r,
uint8_t data[516],
uint8_t pw_len)
{
+ memset(r, '\0', sizeof(*r));
init_samr_user_info21(&r->info,
last_logon,
last_logoff,