Skip to content

Commit

Permalink
QUIC: Make SSL_provide_quic_data accept 0 length data (#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 #9
  • Loading branch information
tatsuhiro-t authored and tmshort committed Dec 14, 2021
1 parent 0eb2b42 commit 3008f83
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 3008f83

Please sign in to comment.