From 0f8a6392d1b49b32a9c1284883c66e5c1dab25ed Mon Sep 17 00:00:00 2001 From: akallabeth Date: Tue, 15 Oct 2024 23:44:51 +0200 Subject: [PATCH] [crypto,tls] remove dead code unreachable condition in is_accepted_fingerprint removed --- libfreerdp/crypto/tls.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libfreerdp/crypto/tls.c b/libfreerdp/crypto/tls.c index 26fa50832..e80f348bb 100644 --- a/libfreerdp/crypto/tls.c +++ b/libfreerdp/crypto/tls.c @@ -1406,15 +1406,11 @@ static BOOL is_accepted_fingerprint(const rdpCertificate* cert, { char* subcontext = NULL; const char* h = strtok_s(cur, ":", &subcontext); - const char* fp = NULL; if (!h) goto next; - fp = h + strlen(h) + 1; - if (!fp) - goto next; - + const char* fp = h + strlen(h) + 1; if (compare_fingerprint_all(fp, h, cert)) { rc = TRUE;