s3:librpc/rpc: fix padding calculation in dcerpc_guess_sizes()
authorStefan Metzmacher <metze@samba.org>
Fri, 19 Jun 2015 13:52:11 +0000 (15:52 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 23 Jun 2015 12:38:53 +0000 (14:38 +0200)
commitb2e042ad9652e2dfb39640de43e09030efc41d3d
tree6da969c5df0563c28724874d9bb4eb8456f04391
parent3e6e9e3acd17531148457be59a32727fb87ae43d
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>
source3/librpc/rpc/dcerpc.h
source3/librpc/rpc/dcerpc_helpers.c
source3/rpc_client/cli_pipe.c
source3/rpc_server/srv_pipe.c