]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/http/http_client.c
OSSL_HTTP_open(): improve use of use_ssl and its documentation
[thirdparty/openssl.git] / crypto / http / http_client.c
index ad7574e69554fedb45a18bf4e86dfa8b7eb16ecf..96b18dc9d38c550d90d62a4ee318ec978f327cbc 100644 (file)
@@ -975,7 +975,7 @@ OSSL_HTTP_REQ_CTX *OSSL_HTTP_open(const char *server, const char *port,
     if (bio_update_fn != NULL) {
         BIO *orig_bio = cbio;
 
-        cbio = (*bio_update_fn)(cbio, arg, 1 /* connect */, use_ssl);
+        cbio = (*bio_update_fn)(cbio, arg, 1 /* connect */, use_ssl != 0);
         if (cbio == NULL) {
             if (bio == NULL) /* cbio was not provided by caller */
                 BIO_free_all(orig_bio);