diff options
author | Luke Leighton <lkcl@samba.org> | 1998-10-22 18:15:23 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-10-22 18:15:23 +0000 |
commit | cbd0b2ccf9519bcada58567b88987e134563058d (patch) | |
tree | 4db13a458318e01a578013508ce61387690f735f /source3/rpc_parse | |
parent | 034a12fdcb6f707b382d9da481bc012a3c49da76 (diff) | |
download | samba-cbd0b2ccf9519bcada58567b88987e134563058d.tar.gz samba-cbd0b2ccf9519bcada58567b88987e134563058d.tar.bz2 samba-cbd0b2ccf9519bcada58567b88987e134563058d.zip |
bug fix in lsa_trans_names.
well-known aliases S-1-5-20 is actually S-1-5-0x20 but sid_to_string does
decimal not hexadecimal oops.
(This used to be commit 4d830e243650729344a2d1b238075e787802ff8b)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r-- | source3/rpc_parse/parse_lsa.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_lsa.c b/source3/rpc_parse/parse_lsa.c index 49a0951554..cc60ace9fc 100644 --- a/source3/rpc_parse/parse_lsa.c +++ b/source3/rpc_parse/parse_lsa.c @@ -31,12 +31,14 @@ static void lsa_io_trans_names(char *desc, LSA_TRANS_NAME_ENUM *trn, prs_struct /******************************************************************* creates a LSA_TRANS_NAME structure. ********************************************************************/ -void make_lsa_trans_name(LSA_TRANS_NAME *trn, uint32 sid_name_use, char *name, uint32 idx) +void make_lsa_trans_name(LSA_TRANS_NAME *trn, UNISTR2 *uni_name, + uint32 sid_name_use, char *name, uint32 idx) { int len_name = strlen(name); trn->sid_name_use = sid_name_use; make_uni_hdr(&(trn->hdr_name), len_name, len_name, len_name != 0); + make_unistr2(uni_name, name, len_name); trn->domain_idx = idx; } |