s3:librpc/rpc: fix padding calculation in dcerpc_guess_sizes()
commitc17dd15bb8b7933d86525943dd14f86190311a99
authorStefan Metzmacher <metze@samba.org>
Fri, 19 Jun 2015 13:52:11 +0000 (19 15:52 +0200)
committerKarolin Seeger <kseeger@samba.org>
Sat, 11 Jul 2015 19:59:25 +0000 (11 21:59 +0200)
treec364d93506c47726d918f09047893f623e787188
parent843c95324a95ae3bf9680a61b357e5b08c4b42df
s3:librpc/rpc: fix padding calculation in dcerpc_guess_sizes()

The padding needs to be relative to the payload start not to the pdu start.
We also need align the padding to DCERPC_AUTH_PAD_ALIGNMENT (16 bytes).

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11061

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(similar to commit b2e042ad9652e2dfb39640de43e09030efc41d3d)
source3/librpc/rpc/dcerpc.h
source3/librpc/rpc/dcerpc_helpers.c
source3/rpc_client/cli_pipe.c
source3/rpc_server/srv_pipe.c