1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

fixed a problem with "net rpc vampire" mis-parsing the alias member

info reply

Thanks to a bug report by 'musb'
(This used to be commit 310f90f3689d4acd16368a833f23ea5f9aaa0133)
This commit is contained in:
Andrew Tridgell 2003-12-05 11:30:47 +00:00
parent f6c798f4cc
commit 1d4978d722

View File

@ -2283,12 +2283,12 @@ static BOOL net_io_sam_alias_mem_info(const char *desc, SAM_ALIAS_MEM_INFO * inf
if (!prs_uint32("ptr_members", ps, depth, &info->ptr_members))
return False;
if (ps->data_offset + 16 > ps->buffer_size)
return False;
ps->data_offset += 16;
if (info->ptr_members != 0)
{
if (ps->data_offset + 16 > ps->buffer_size)
return False;
ps->data_offset += 16;
if (!prs_uint32("num_sids", ps, depth, &info->num_sids))
return False;
if (info->num_sids != info->num_members)