Skip to content
Commit 5e8b24db authored by Matt Caswell's avatar Matt Caswell
Browse files

Fix write failure handling in DTLS1.2



The DTLS code is supposed to drop packets if we try to write them out but
the underlying BIO write buffers are full. ssl3_write_pending() contains
an incorrect test for DTLS that controls this. The test only checks for
DTLS1 so DTLS1.2 does not correctly clear the internal OpenSSL buffer which
can later cause an assert to be hit. This commit changes the test to cover
all DTLS versions.

RT#3967

Reviewed-by: default avatarTim Hudson <tjh@openssl.org>
parent fa4629b6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment