Check BIO_flush return value.
That we're ignoring the return value is clearly wrong when dtls1_retransmit_message has other code that doesn't ignore it, by way of dtls1_do_handshake_write. Change-Id: Ie3f8c0defdf1f5e709d67af4ca6fa4f0d83c76c9 Reviewed-on: https://boringssl-review.googlesource.com/7872 Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
30152fdfc1
commit
2730955e74
@ -759,10 +759,11 @@ int dtls1_retransmit_buffered_messages(SSL *ssl) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TODO(davidben): Check return value? */
|
ret = BIO_flush(SSL_get_wbio(ssl));
|
||||||
(void)BIO_flush(SSL_get_wbio(ssl));
|
if (ret <= 0) {
|
||||||
|
ssl->rwstate = SSL_WRITING;
|
||||||
ret = 1;
|
goto err;
|
||||||
|
}
|
||||||
|
|
||||||
err:
|
err:
|
||||||
if (!was_buffered) {
|
if (!was_buffered) {
|
||||||
|
Loading…
Reference in New Issue
Block a user