s4:librpc/rpc: fix padding caclucation in ncacn_push_request_sign()
commit114c52e73ed9e0adeac8ad1bc1dc014f3c10f4d6
authorStefan Metzmacher <metze@samba.org>
Sat, 20 Jun 2015 15:49:02 +0000 (20 17:49 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 23 Jun 2015 12:38:53 +0000 (23 14:38 +0200)
tree4ce0ec0ba2cdb60e7c3660c371d26b2c845dcb94
parent48f2c383e1d7f52114223cd2a54857426bf64025
s4:librpc/rpc: fix padding caclucation in ncacn_push_request_sign()

This is simplified by using DCERPC_AUTH_PAD_LENGTH() and changes the behaviour
so that we will use no padding if the stub_length is already aligned
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>
source4/librpc/rpc/dcerpc.c