From 7831bd899639343c329a08b4c42ed88683ca75aa Mon Sep 17 00:00:00 2001 From: roman Date: Wed, 3 Jul 2024 15:01:35 +0200 Subject: [PATCH] session wrapper UPDATE init out params --- src/session_mbedtls.c | 3 +++ src/session_openssl.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/session_mbedtls.c b/src/session_mbedtls.c index 5a3f6460..ed55a080 100644 --- a/src/session_mbedtls.c +++ b/src/session_mbedtls.c @@ -1626,6 +1626,9 @@ nc_server_tls_get_crl_distpoint_uris_wrap(void *leaf_cert, void *cert_store, cha NC_CHECK_ARG_RET(NULL, cert_store, uris, uri_count, 1); + *uris = NULL; + *uri_count = 0; + /* get the number of certs in the store */ cert = cert_store; cert_count = 0; diff --git a/src/session_openssl.c b/src/session_openssl.c index b4d06521..d49b5349 100644 --- a/src/session_openssl.c +++ b/src/session_openssl.c @@ -1295,6 +1295,9 @@ nc_server_tls_get_crl_distpoint_uris_wrap(void *leaf_cert, void *cert_store, cha ASN1_STRING *asn_string_uri; void *tmp; + *uris = NULL; + *uri_count = 0; + NC_CHECK_ARG_RET(NULL, cert_store, uris, uri_count, 1); /* treat all entries in the cert_store as X509_OBJECTs */