From: sashan Date: Thu, 10 Oct 2024 08:48:07 +0000 (+0200) Subject: SSL_inject_net_dgram() should return result of ossl_quic_demux_inject() X-Git-Tag: openssl-3.5.0-alpha1~324 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41fe7a2b8e3ba7075aa34b9d2412037e87cfffb5;p=thirdparty%2Fopenssl.git SSL_inject_net_dgram() should return result of ossl_quic_demux_inject() This got introduced by #595288251bb (QUIC APL: Ensure APL functions use correct prologue) Reviewed-by: Neil Horman Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/25659) --- diff --git a/ssl/quic/quic_impl.c b/ssl/quic/quic_impl.c index 30b1a20a8d6..ee360969998 100644 --- a/ssl/quic/quic_impl.c +++ b/ssl/quic/quic_impl.c @@ -3198,7 +3198,6 @@ int SSL_inject_net_dgram(SSL *s, const unsigned char *buf, demux = ossl_quic_port_get0_demux(port); ret = ossl_quic_demux_inject(demux, buf, buf_len, peer, local); - ret = 1; err: qctx_unlock(&ctx); return ret;