From 24be4082d581e8594c867a04922035ef4ad0cdaa Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 5 Dec 2003 21:01:23 +0000 Subject: Janitor for tridge... Jeremy. (This used to be commit d9790a76d88b8c46d665f2294878ee13d438b791) --- source3/rpc_parse/parse_net.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3') diff --git a/source3/rpc_parse/parse_net.c b/source3/rpc_parse/parse_net.c index ad0a91e7ea..5df75fc5f6 100644 --- a/source3/rpc_parse/parse_net.c +++ b/source3/rpc_parse/parse_net.c @@ -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) -- cgit