diff options
author | Luke Leighton <lkcl@samba.org> | 1999-02-19 17:41:05 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-02-19 17:41:05 +0000 |
commit | 5c5f5445384bf1c55ad28ee7c24b2cce14744a80 (patch) | |
tree | c5fa17e9c0458bdd591743293840e7a47a49eda8 | |
parent | 0cfca572c9877335d8d5275cf2e6a94956b2e6ab (diff) | |
download | samba-5c5f5445384bf1c55ad28ee7c24b2cce14744a80.tar.gz samba-5c5f5445384bf1c55ad28ee7c24b2cce14744a80.tar.bz2 samba-5c5f5445384bf1c55ad28ee7c24b2cce14744a80.zip |
samr_lookup_names "none found" error needed corrections with empty lists.
(This used to be commit e164b5080ca966de4227277f7ac031bc96d056ad)
-rw-r--r-- | source3/rpc_parse/parse_samr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_parse/parse_samr.c b/source3/rpc_parse/parse_samr.c index cadeffdfd0..fb93925011 100644 --- a/source3/rpc_parse/parse_samr.c +++ b/source3/rpc_parse/parse_samr.c @@ -3385,10 +3385,10 @@ void samr_io_r_lookup_names(char *desc, SAMR_R_LOOKUP_NAMES *r_u, prs_struct *p prs_uint32("num_rids1", ps, depth, &(r_u->num_rids1)); prs_uint32("ptr_rids ", ps, depth, &(r_u->ptr_rids )); - prs_uint32("num_rids2", ps, depth, &(r_u->num_rids2)); if (r_u->ptr_rids != 0 && r_u->num_rids1 != 0) { + prs_uint32("num_rids2", ps, depth, &(r_u->num_rids2)); for (i = 0; i < r_u->num_rids2; i++) { prs_grow(ps); @@ -3399,10 +3399,10 @@ void samr_io_r_lookup_names(char *desc, SAMR_R_LOOKUP_NAMES *r_u, prs_struct *p prs_uint32("num_types1", ps, depth, &(r_u->num_types1)); prs_uint32("ptr_types ", ps, depth, &(r_u->ptr_types )); - prs_uint32("num_types2", ps, depth, &(r_u->num_types2)); if (r_u->ptr_types != 0 && r_u->num_types1 != 0) { + prs_uint32("num_types2", ps, depth, &(r_u->num_types2)); for (i = 0; i < r_u->num_types2; i++) { prs_grow(ps); |