]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Minor fixups
authorHugo Landau <hlandau@openssl.org>
Fri, 28 Apr 2023 14:48:44 +0000 (15:48 +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_ackm.c
test/quic_cc_test.c

index f7986728f6c9ed4fef819f5f690361375d46c69c..7478d5fc24c0b62773ce7808e6e69cc08b36c307 100644 (file)
@@ -990,11 +990,12 @@ static void ackm_on_pkts_acked(OSSL_ACKM *ackm, const OSSL_ACKM_TX_PKT *apkt)
                                               apkt->largest_acked + 1);
         }
 
+        ainfo.tx_time = apkt->time;
+        ainfo.tx_size = apkt->num_bytes;
+
         anext = apkt->anext;
         apkt->on_acked(apkt->cb_arg); /* may free apkt */
 
-        ainfo.tx_time = apkt->time;
-        ainfo.tx_size = apkt->num_bytes;
         ackm->cc_method->on_data_acked(ackm->cc_data, &ainfo);
     }
 }
index ce2507e68d38ba9fe363414188bce5ef9675651b..8d75a642c845b7ff266ffa0decb6029672dd278e 100644 (file)
@@ -592,7 +592,7 @@ static int test_sanity(void)
     if (!TEST_uint64_t_ne(ccm->get_tx_allowance(cc), allowance2))
         goto err;
 
-    /* But it should not be as high as the origina value */
+    /* But it should not be as high as the original value */
     if (!TEST_uint64_t_lt(ccm->get_tx_allowance(cc), allowance))
         goto err;