mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
Be sure referent ID is updated for incoming structures, too.
(This used to be commit 00e0aba2cf
)
This commit is contained in:
parent
356e043767
commit
bca9e7d325
@ -327,9 +327,17 @@ BOOL epm_io_tower_array(const char *desc, EPM_TOWER_ARRAY *array,
|
||||
return False;
|
||||
}
|
||||
}
|
||||
for (i=0; i < array->count; i++)
|
||||
if (!prs_uint32("ref_id", ps, depth, &array->tower_ref_ids[i]))
|
||||
for (i=0; i < array->count; i++) {
|
||||
if (!prs_uint32("ref_id", ps, depth, &array->tower_ref_ids[i])) {
|
||||
return False;
|
||||
} else {
|
||||
if (array->tower_ref_ids[i] > internal_referent_id) {
|
||||
internal_referent_id = array->tower_ref_ids[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!prs_set_offset(ps, prs_offset(ps) + array->offset))
|
||||
return False;
|
||||
@ -418,8 +426,10 @@ BOOL epm_io_q_map(const char *desc, EPM_Q_MAP *io_map, prs_struct *ps,
|
||||
if (!epm_io_handle("handle", &io_map->handle, ps, depth))
|
||||
return False;
|
||||
|
||||
if (!prs_uint32("max_towers", ps, 0, &io_map->tower_ref_id))
|
||||
if (!prs_uint32("referent_id", ps, 0, &io_map->tower_ref_id))
|
||||
return False;
|
||||
if (io_map->tower_ref_id > internal_referent_id)
|
||||
internal_referent_id = io_map->tower_ref_id;
|
||||
|
||||
/* HACK: We need a more elegant way of doing this */
|
||||
if (UNMARSHALLING(ps)) {
|
||||
|
Loading…
Reference in New Issue
Block a user