[crypto,tls] remove dead code

unreachable condition in is_accepted_fingerprint removed
This commit is contained in:
akallabeth 2024-10-15 23:44:51 +02:00
parent acf80baeb7
commit 0f8a6392d1
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -1406,15 +1406,11 @@ static BOOL is_accepted_fingerprint(const rdpCertificate* cert,
{ {
char* subcontext = NULL; char* subcontext = NULL;
const char* h = strtok_s(cur, ":", &subcontext); const char* h = strtok_s(cur, ":", &subcontext);
const char* fp = NULL;
if (!h) if (!h)
goto next; goto next;
fp = h + strlen(h) + 1; const char* fp = h + strlen(h) + 1;
if (!fp)
goto next;
if (compare_fingerprint_all(fp, h, cert)) if (compare_fingerprint_all(fp, h, cert))
{ {
rc = TRUE; rc = TRUE;