summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2003-10-17 19:47:06 +0000
committerJim McDonough <jmcd@samba.org>2003-10-17 19:47:06 +0000
commite9fc15d58c52c12438c1f9c69394c11f76ce72d8 (patch)
tree101cb63e9f24e1d296358549fdf30ca2ccb2bfe5 /source
parent06bacf6e3434db5bd09b48f84206441712e69a63 (diff)
downloadsamba-e9fc15d58c52c12438c1f9c69394c11f76ce72d8.tar.gz
samba-e9fc15d58c52c12438c1f9c69394c11f76ce72d8.tar.xz
samba-e9fc15d58c52c12438c1f9c69394c11f76ce72d8.zip
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.
Diffstat (limited to 'source')
-rw-r--r--source/rpc_parse/parse_rpc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/rpc_parse/parse_rpc.c b/source/rpc_parse/parse_rpc.c
index 57ebe5d3560..f053297192d 100644
--- a/source/rpc_parse/parse_rpc.c
+++ b/source/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;