Fossil SCM
Fix harmless compiler warning
Commit
0681b39b824625718c77a9f5ba9edf6a01000fdf
Parent
70218670ffb5eb2…
1 file changed
+1
-1
+1
-1
| --- src/http_ssl.c | ||
| +++ src/http_ssl.c | ||
| @@ -283,11 +283,11 @@ | ||
| 283 | 283 | return 1; |
| 284 | 284 | } |
| 285 | 285 | BIO_get_ssl(iBio, &ssl); |
| 286 | 286 | |
| 287 | 287 | #if (SSLEAY_VERSION_NUMBER >= 0x00908070) && !defined(OPENSSL_NO_TLSEXT) |
| 288 | - if( !SSL_set_tlsext_host_name(ssl, pUrlData->useProxy?pUrlData->hostname:pUrlData->name) ){ | |
| 288 | + if( !SSL_set_tlsext_host_name(ssl, (pUrlData->useProxy?pUrlData->hostname:pUrlData->name)) ){ | |
| 289 | 289 | fossil_warning("WARNING: failed to set server name indication (SNI), " |
| 290 | 290 | "continuing without it.\n"); |
| 291 | 291 | } |
| 292 | 292 | #endif |
| 293 | 293 | |
| 294 | 294 |
| --- src/http_ssl.c | |
| +++ src/http_ssl.c | |
| @@ -283,11 +283,11 @@ | |
| 283 | return 1; |
| 284 | } |
| 285 | BIO_get_ssl(iBio, &ssl); |
| 286 | |
| 287 | #if (SSLEAY_VERSION_NUMBER >= 0x00908070) && !defined(OPENSSL_NO_TLSEXT) |
| 288 | if( !SSL_set_tlsext_host_name(ssl, pUrlData->useProxy?pUrlData->hostname:pUrlData->name) ){ |
| 289 | fossil_warning("WARNING: failed to set server name indication (SNI), " |
| 290 | "continuing without it.\n"); |
| 291 | } |
| 292 | #endif |
| 293 | |
| 294 |
| --- src/http_ssl.c | |
| +++ src/http_ssl.c | |
| @@ -283,11 +283,11 @@ | |
| 283 | return 1; |
| 284 | } |
| 285 | BIO_get_ssl(iBio, &ssl); |
| 286 | |
| 287 | #if (SSLEAY_VERSION_NUMBER >= 0x00908070) && !defined(OPENSSL_NO_TLSEXT) |
| 288 | if( !SSL_set_tlsext_host_name(ssl, (pUrlData->useProxy?pUrlData->hostname:pUrlData->name)) ){ |
| 289 | fossil_warning("WARNING: failed to set server name indication (SNI), " |
| 290 | "continuing without it.\n"); |
| 291 | } |
| 292 | #endif |
| 293 | |
| 294 |