summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-05-10 23:41:08 +0200
committerGünther Deschner <gd@samba.org>2010-05-11 00:58:57 +0200
commit9e643f0784c9af1c60b3fb879a46059a1355862b (patch)
tree5ec2adda1a9070d5fda38a1faeb25bb1b7de9690
parent36b0fed567bc50324559bd2f72b51913eb4ba5d6 (diff)
downloadsamba-9e643f0784c9af1c60b3fb879a46059a1355862b.tar.gz
samba-9e643f0784c9af1c60b3fb879a46059a1355862b.tar.bz2
samba-9e643f0784c9af1c60b3fb879a46059a1355862b.zip
s4-smbtorture: fix smbcli_rap_netuserpasswordset2().
Guenther
-rw-r--r--source4/torture/rap/rap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/rap/rap.c b/source4/torture/rap/rap.c
index 3f03ab3855..4e490bcaae 100644
--- a/source4/torture/rap/rap.c
+++ b/source4/torture/rap/rap.c
@@ -1621,11 +1621,11 @@ NTSTATUS smbcli_rap_netuserpasswordset2(struct smbcli_tree *tree,
rap_cli_push_paramdesc(call, 'b');
rap_cli_push_paramdesc(call, '1');
rap_cli_push_paramdesc(call, '6');
- ndr_push_bytes(call->ndr_push_param, (uint8_t *)r->in.OldPassword, 16);
+ ndr_push_charset(call->ndr_push_param, NDR_SCALARS, r->in.OldPassword, 16, sizeof(uint8_t), CH_DOS);
rap_cli_push_paramdesc(call, 'b');
rap_cli_push_paramdesc(call, '1');
rap_cli_push_paramdesc(call, '6');
- ndr_push_bytes(call->ndr_push_param, (uint8_t *)r->in.NewPassword, 16);
+ ndr_push_charset(call->ndr_push_param, NDR_SCALARS, r->in.NewPassword, 16, sizeof(uint8_t), CH_DOS);
rap_cli_push_word(call, r->in.EncryptedPassword);
rap_cli_push_word(call, r->in.RealPasswordLength);