mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
samr_lookup_names "none found" error needed corrections with empty lists.
(This used to be commit e164b5080ca966de4227277f7ac031bc96d056ad)
This commit is contained in:
parent
0cfca572c9
commit
5c5f544538
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user