mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
Ensure we use a dgram mem BIO for the DTLS record layer
Reviewed-by: Hugo Landau <hlandau@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18132)
This commit is contained in:
parent
499b2c4654
commit
db1a505ced
@ -1893,7 +1893,10 @@ int ssl_set_new_record_layer(SSL_CONNECTION *s, int version,
|
||||
&& level != OSSL_RECORD_PROTECTION_LEVEL_NONE)
|
||||
epoch = DTLS_RECORD_LAYER_get_r_epoch(&s->rlayer) + 1; /* new epoch */
|
||||
|
||||
s->rrlnext = BIO_new(BIO_s_mem());
|
||||
if (SSL_CONNECTION_IS_DTLS(s))
|
||||
s->rrlnext = BIO_new(BIO_s_dgram_mem());
|
||||
else
|
||||
s->rrlnext = BIO_new(BIO_s_mem());
|
||||
|
||||
if (s->rrlnext == NULL) {
|
||||
BIO_free(prev);
|
||||
|
Loading…
Reference in New Issue
Block a user