diff options
author | Günther Deschner <gd@samba.org> | 2008-02-28 23:37:47 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-28 23:37:47 +0100 |
commit | 700438dbbd45c8e097a74b98a56a0c97e241fa34 (patch) | |
tree | 4b37b0c1b36470fd945a73778d2edc2781953886 /source3 | |
parent | de39bd20c1f2a674f7acd4ed4fa2527fdbff8aeb (diff) | |
download | samba-700438dbbd45c8e097a74b98a56a0c97e241fa34.tar.gz samba-700438dbbd45c8e097a74b98a56a0c97e241fa34.tar.bz2 samba-700438dbbd45c8e097a74b98a56a0c97e241fa34.zip |
Fix samr querydispinfo w.r.t. lsa_AsciiStringLarge.
Thanks metze for the fix.
Guenther
(This used to be commit dcffb885bc5d16e795b71d95e0790d3d7d70cf3c)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_client/init_lsa.c | 9 | ||||
-rw-r--r-- | source3/rpc_server/srv_samr_nt.c | 8 |
2 files changed, 13 insertions, 4 deletions
diff --git a/source3/rpc_client/init_lsa.c b/source3/rpc_client/init_lsa.c index fce382ed1b..2637158fd0 100644 --- a/source3/rpc_client/init_lsa.c +++ b/source3/rpc_client/init_lsa.c @@ -47,6 +47,15 @@ void init_lsa_AsciiString(struct lsa_AsciiString *name, const char *s) } /******************************************************************* + inits a structure. +********************************************************************/ + +void init_lsa_AsciiStringLarge(struct lsa_AsciiStringLarge *name, const char *s) +{ + name->string = s; +} + +/******************************************************************* Inits an lsa_QosInfo structure. ********************************************************************/ diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c index f8b953904f..f38a8fcfc0 100644 --- a/source3/rpc_server/srv_samr_nt.c +++ b/source3/rpc_server/srv_samr_nt.c @@ -1318,8 +1318,8 @@ static NTSTATUS init_samr_dispinfo_4(TALLOC_CTX *ctx, for (i = 0; i < num_entries ; i++) { - init_lsa_AsciiString(&r->entries[i].account_name, - entries[i].account_name); + init_lsa_AsciiStringLarge(&r->entries[i].account_name, + entries[i].account_name); r->entries[i].idx = start_idx+i+1; } @@ -1354,8 +1354,8 @@ static NTSTATUS init_samr_dispinfo_5(TALLOC_CTX *ctx, for (i = 0; i < num_entries ; i++) { - init_lsa_AsciiString(&r->entries[i].account_name, - entries[i].account_name); + init_lsa_AsciiStringLarge(&r->entries[i].account_name, + entries[i].account_name); r->entries[i].idx = start_idx+i+1; } |