Fix test of first of 255 CBC padding bytes.
authorAdam Langley <agl@chromium.org>
Mon, 8 Aug 2016 20:36:55 +0000 (13:36 -0700)
committerAdam Langley <agl@chromium.org>
Mon, 8 Aug 2016 20:36:55 +0000 (13:36 -0700)
commiteea8723cd0d56398fc40d0337e9e730961c9c2fa
treee138ad2677c1b2a032b7719a27d3c1e404a142e3
parent358558eba8a55e152d7ffcdf98cd561f46aeb9a3
Fix test of first of 255 CBC padding bytes.

Thanks to Peter Gijsels for pointing out that if a CBC record has 255
bytes of padding, the first was not being checked.

(This is an import of change 80842bdb from BoringSSL.)

Reviewed-by: Emilia Käsper <emilia@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1431)
ssl/record/ssl3_record.c