From e6900132ca7d216662e3ab08ad37a1e34c752cd9 Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Fri, 17 Oct 2003 19:47:06 +0000 Subject: uuid itself might not be aligned (as is the case in epm map requests), so it needs to be aligned outside the smb_io_rpc_uuid() call if a specific rpc or struct needs it that way. (This used to be commit e9fc15d58c52c12438c1f9c69394c11f76ce72d8) --- source3/rpc_parse/parse_rpc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/rpc_parse/parse_rpc.c b/source3/rpc_parse/parse_rpc.c index 57ebe5d356..f053297192 100644 --- a/source3/rpc_parse/parse_rpc.c +++ b/source3/rpc_parse/parse_rpc.c @@ -264,9 +264,6 @@ BOOL smb_io_rpc_uuid(const char *desc, RPC_UUID *uuid, prs_struct *ps, int depth prs_debug(ps, depth, desc, "smb_io_rpc_uuid"); depth++; - if(!prs_align(ps)) - return False; - if(!prs_uint32 ("data ", ps, depth, &uuid->time_low)) return False; if(!prs_uint16 ("data ", ps, depth, &uuid->time_mid)) @@ -292,6 +289,9 @@ static BOOL smb_io_rpc_iface(const char *desc, RPC_IFACE *ifc, prs_struct *ps, i prs_debug(ps, depth, desc, "smb_io_rpc_iface"); depth++; + if (!prs_align(ps)) + return False; + if (!smb_io_rpc_uuid( "uuid", &ifc->uuid, ps, depth)) return False; -- cgit