diff options
author | Benjamin Kaduk <bkaduk@akamai.com> | 2020-11-28 17:11:46 -0800 |
---|---|---|
committer | Benjamin Kaduk <kaduk@mit.edu> | 2020-12-02 13:43:06 -0800 |
commit | 70cae332a2c200087605f94cdccfee80c9380fbf (patch) | |
tree | 22e2db474a6861e12a9a8e5d680df1fc9ec83024 /ssl/record | |
parent | 0a3b330cf09dd3746f4f9c5bb82d9bbcfff809c1 (diff) | |
download | openssl-new-70cae332a2c200087605f94cdccfee80c9380fbf.tar.gz |
Fix comment in do_dtls1_write()
This code started off as a copy of ssl3_write_bytes(), and the comment
was not updated with the implementation.
Reported by yangyangtiantianlonglong in #13518
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13566)
Diffstat (limited to 'ssl/record')
-rw-r--r-- | ssl/record/rec_layer_d1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/record/rec_layer_d1.c b/ssl/record/rec_layer_d1.c index 53ac5eebbc..cc412bae37 100644 --- a/ssl/record/rec_layer_d1.c +++ b/ssl/record/rec_layer_d1.c @@ -800,8 +800,8 @@ int do_dtls1_write(SSL *s, int type, const unsigned char *buf, wb = &s->rlayer.wbuf[0]; /* - * first check if there is a SSL3_BUFFER still being written out. This - * will happen with non blocking IO + * DTLS writes whole datagrams, so there can't be anything left in + * the buffer. */ if (!ossl_assert(SSL3_BUFFER_get_left(wb) == 0)) { SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR); |