[crypto,tls] remove dead code
unreachable condition in is_accepted_fingerprint removed
This commit is contained in:
parent
acf80baeb7
commit
0f8a6392d1
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user