]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Minor fixes
authorHugo Landau <hlandau@openssl.org>
Mon, 29 Jan 2024 14:49:09 +0000 (14:49 +0000)
committerHugo Landau <hlandau@openssl.org>
Fri, 2 Feb 2024 11:50:30 +0000 (11:50 +0000)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22037)

ssl/quic/qlog.c
test/json_test.c

index e35c7d7b63c78fda58a70d746cfb322007811896..7299d695153bb48576b3aacf7a07e8359bce8d50 100644 (file)
@@ -162,8 +162,7 @@ void ossl_qlog_free(QLOG *qlog)
     if (qlog == NULL)
         return;
 
-    ossl_json_flush(&qlog->json);
-    ossl_json_cleanup(&qlog->json);
+    ossl_json_flush_cleanup(&qlog->json);
     BIO_free_all(qlog->bio);
     OPENSSL_free((char *)qlog->info.title);
     OPENSSL_free((char *)qlog->info.description);
index 97ab9aa646d67bf6f0d59e8727af50e8d9e94fe4..d2c50597190513ab2dde386e38052465ecd805e4 100644 (file)
@@ -43,7 +43,7 @@ static void helper_cleanup(struct helper *h)
     BIO_free_all(h->mem_bio);
     h->mem_bio = NULL;
 
-    if (!h->init) {
+    if (h->init) {
         ossl_json_cleanup(&h->j);
         h->init = 0;
     }