Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Commit e9553dd

Browse files
tatsuhiro-ttmshort
authored andcommitted
QUIC: Make SSL_provide_quic_data accept 0 length data (#13)
This commit makes SSL_provide_quic_data accept 0 length data, which matches BoringSSL behavior. Fixes #9
1 parent cfd6a29 commit e9553dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ssl/ssl_quic.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ int SSL_provide_quic_data(SSL *ssl, OSSL_ENCRYPTION_LEVEL level,
143143
return 0;
144144
}
145145

146+
if (len == 0)
147+
return 1;
148+
146149
if (ssl->quic_buf == NULL) {
147150
BUF_MEM *buf;
148151
if ((buf = BUF_MEM_new()) == NULL) {

0 commit comments

Comments
 (0)