summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-12-05 21:01:23 +0000
committerJeremy Allison <jra@samba.org>2003-12-05 21:01:23 +0000
commit24be4082d581e8594c867a04922035ef4ad0cdaa (patch)
treeb0274ec611cdbb45e05e97e41dc635b152c50172 /source3
parentfeb51ad34192714ef7f0e9be8cf22725b25848de (diff)
downloadsamba-24be4082d581e8594c867a04922035ef4ad0cdaa.tar.gz
samba-24be4082d581e8594c867a04922035ef4ad0cdaa.tar.bz2
samba-24be4082d581e8594c867a04922035ef4ad0cdaa.zip
Janitor for tridge...
Jeremy. (This used to be commit d9790a76d88b8c46d665f2294878ee13d438b791)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_parse/parse_net.c8
1 files changed, 4 insertions, 4 deletions
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)