]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
QUIC CHANNEL: Fix bug where time callback arg wasn't passed
authorHugo Landau <hlandau@openssl.org>
Fri, 21 Apr 2023 10:19:18 +0000 (11:19 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 1 May 2023 10:03:54 +0000 (11:03 +0100)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20423)

ssl/quic/quic_channel.c

index 95cf2b7d9ae4f49075521fac172317f1f2887e91..bb693352e794244066525e0dd6472d0e239bd420 100644 (file)
@@ -150,7 +150,7 @@ static int ch_init(QUIC_CHANNEL *ch)
 
     ch->have_statm = 1;
     ch->cc_method = &ossl_cc_newreno_method;
-    if ((ch->cc_data = ch->cc_method->new(get_time, NULL)) == NULL)
+    if ((ch->cc_data = ch->cc_method->new(get_time, ch)) == NULL)
         goto err;
 
     if ((ch->ackm = ossl_ackm_new(get_time, ch, &ch->statm,