diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/net_rpc_join.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/utils/net_rpc_join.c b/source3/utils/net_rpc_join.c index f9b3c94bfb..463de61b05 100644 --- a/source3/utils/net_rpc_join.c +++ b/source3/utils/net_rpc_join.c @@ -189,9 +189,12 @@ int net_rpc_join(int argc, const char **argv) /* Create a random machine account password */ - clear_trust_password = generate_random_str(15); - clear_trust_password = strdup(clear_trust_password); - + { + char *str; + str = generate_random_str(15); + clear_trust_password = strdup(str); + } + ucs2_pw_len = push_ucs2(NULL, ucs2_trust_password, clear_trust_password, sizeof(ucs2_trust_password), 0); |