summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2015-06-19 22:35:44 +0200
committerKarolin Seeger <kseeger@samba.org>2015-07-11 21:59:25 +0200
commitad94101f6415f274092d2ba8ab7146c431304d5d (patch)
tree022f344643bc8798d63a20bf05764eb126567154
parent9ab5872439acd7a7de6a6ee319e997313d02586c (diff)
downloadsamba-ad94101f6415f274092d2ba8ab7146c431304d5d.tar.gz
s4:librpc/rpc: let dcerpc_ship_next_request() use DCERPC_AUTH_PAD_ALIGNMENT define
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> (cherry picked from commit ef801bae95403e96042f5d8c87085bce21436013)
-rw-r--r--source4/librpc/rpc/dcerpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c
index 2826160a353..cd33dc04087 100644
--- a/source4/librpc/rpc/dcerpc.c
+++ b/source4/librpc/rpc/dcerpc.c
@@ -1601,7 +1601,7 @@ static void dcerpc_ship_next_request(struct dcecli_connection *c)
chunk_size -= sig_size;
}
}
- chunk_size -= (chunk_size % 16);
+ chunk_size -= (chunk_size % DCERPC_AUTH_PAD_ALIGNMENT);
pkt.ptype = DCERPC_PKT_REQUEST;
pkt.call_id = req->call_id;