From 9dcb9a7dc90aa0a46dcb1575de2dada5278594a1 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa <404610+tatsuhiro-t@users.noreply.github.com> Date: Fri, 12 Mar 2021 00:39:20 +0900 Subject: [PATCH] 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 --- ssl/ssl_quic.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ssl/ssl_quic.c b/ssl/ssl_quic.c index 9d4c8014113fb..49a4f3ab5c7ed 100644 --- a/ssl/ssl_quic.c +++ b/ssl/ssl_quic.c @@ -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) {