iolog/hostcheck: These two parameters do not need to be initialized and assigned, the following code is directly assigned

Signed-off-by: Li zeming <zeming@nfschina.com>
This commit is contained in:
Li zeming
2022-08-01 10:46:56 +08:00
committed by Todd C. Miller
parent c27acf55ec
commit 393d9997cb

View File

@@ -188,7 +188,7 @@ matches_common_name(const char *hostname, const char *ipaddr, const X509 *cert,
{
X509_NAME_ENTRY *common_name_entry = NULL;
ASN1_STRING *common_name_asn1 = NULL;
int common_name_loc = -1;
int common_name_loc;
debug_decl(matches_common_name, SUDO_DEBUG_UTIL);
/* Find the position of the CN field in the Subject field of the certificate */
@@ -268,7 +268,7 @@ matches_subject_alternative_name(const char *hostname, const char *ipaddr, const
{
HostnameValidationResult result = MatchNotFound;
int i;
int san_names_nb = -1;
int san_names_nb;
STACK_OF(GENERAL_NAME) *san_names = NULL;
debug_decl(matches_subject_alternative_name, SUDO_DEBUG_UTIL);