s4:rpc_server: fix padding caclucation in dcesrv_auth_response()
authorStefan Metzmacher <metze@samba.org>
Sat, 20 Jun 2015 15:49:02 +0000 (17:49 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 23 Jun 2015 12:38:53 +0000 (14:38 +0200)
commit69c1b4b7c10dd5fd9cacaa3a76c47bc854ee3fed
treefa2d319a8b431a72d504d74cdae2c4c467dae061
parent1bf7ab49b4459e81ab2b82d9668b3d7cb76372f4
s4:rpc_server: fix padding caclucation in dcesrv_auth_response()

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/rpc_server/dcesrv_auth.c