Skip to content

Commit

Permalink
QUIC: Make SSL_provide_quic_data accept 0 length data (quictls#13)
Browse files Browse the repository at this point in the history
This commit makes SSL_provide_quic_data accept 0 length data, which
matches BoringSSL behavior.

Fixes quictls#9
  • Loading branch information
tatsuhiro-t authored and xl32 committed Jun 6, 2024
1 parent a6b01e0 commit b1008d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ssl/ssl_quic.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ int SSL_provide_quic_data(SSL *ssl, OSSL_ENCRYPTION_LEVEL level,
return 0;
}

if (len == 0)
return 1;

if (ssl->quic_buf == NULL) {
BUF_MEM *buf;
if ((buf = BUF_MEM_new()) == NULL) {
Expand Down

0 comments on commit b1008d3

Please sign in to comment.