Android NTP: Add UMA for the time to click a most visited tile
[chromium-blink-merge.git] / third_party / tlslite / patches / ssl3_padding.patch
blob6f720ac08d6f642214446eb260b2579f87190b33
1 diff --git a/third_party/tlslite/tlslite/tlsrecordlayer.py b/third_party/tlslite/tlslite/tlsrecordlayer.py
2 index f18fcf5..01ff3e9 100644
3 --- a/third_party/tlslite/tlslite/tlsrecordlayer.py
4 +++ b/third_party/tlslite/tlslite/tlsrecordlayer.py
5 @@ -592,9 +592,9 @@ class TLSRecordLayer(object):
6 b = self.fixedIVBlock + b
8 #Add padding: b = b+ (macBytes + paddingBytes)
9 - currentLength = len(b) + len(macBytes) + 1
10 + currentLength = len(b) + len(macBytes)
11 blockLength = self._writeState.encContext.block_size
12 - paddingLength = blockLength-(currentLength % blockLength)
13 + paddingLength = blockLength - 1 - (currentLength % blockLength)
15 paddingBytes = bytearray([paddingLength] * (paddingLength+1))
16 if self.fault == Fault.badPadding: