Skip to content

Commit

Permalink
Fix server certificate verification in ssl__client.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertByrnes committed Apr 25, 2024
1 parent fc24e6e commit e10fbe2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ssl__client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,9 @@ int start_ssl_client(
if (ret != 0) {
break;
}
int flags = verify_server_cert(ssl_client); // Step 8 - Verify the server certificate
ret = flags;
ret = verify_server_cert(ssl_client); // Step 8 - Verify the server certificate
if (ret != 0) {
log_failed_cert(flags);
log_failed_cert(ret);
} else {
log_v("Certificate verified.");
}
Expand Down

0 comments on commit e10fbe2

Please sign in to comment.