We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bae40fc + 23ff9a5 commit cde2936Copy full SHA for cde2936
httplib.h
@@ -10923,7 +10923,11 @@ inline long SSLClient::get_openssl_verify_result() const {
10923
inline SSL_CTX *SSLClient::ssl_context() const { return ctx_; }
10924
10925
inline bool SSLClient::create_and_connect_socket(Socket &socket, Error &error) {
10926
- return is_valid() && ClientImpl::create_and_connect_socket(socket, error);
+ if (!is_valid()) {
10927
+ error = Error::SSLConnection;
10928
+ return false;
10929
+ }
10930
+ return ClientImpl::create_and_connect_socket(socket, error);
10931
}
10932
10933
// Assumes that socket_mutex_ is locked and that there are no requests in
0 commit comments