Fix SSL_pending() for DTLS
authorMatt Caswell <matt@openssl.org>
Thu, 19 Apr 2018 15:42:39 +0000 (16:42 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 20 Apr 2018 10:51:57 +0000 (11:51 +0100)
commit5b79813b23c02e79e3856ac526f0aab3b8c2e811
treed5ef9d168de136a1d24b3c07707f816cabca7039
parent033c181ba690ef234812c51d4c6cb7d8dd337cb7
Fix SSL_pending() for DTLS

DTLS was not correctly returning the number of pending bytes left in
a call to SSL_pending(). This makes the detection of truncated packets
almost impossible.

Fixes #5478

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6020)
ssl/record/rec_layer_d1.c