Fossil SCM
Set the error message to indicate the HTTP status code returned on CONNECT to avoid segfault.
Commit
87d5fef9ceb54d05266997affd33a9605e6a5a88
Parent
45107553c06bb22…
1 file changed
+1
+1
| --- src/http_ssl.c | ||
| +++ src/http_ssl.c | ||
| @@ -264,10 +264,11 @@ | ||
| 264 | 264 | ssl_close(); |
| 265 | 265 | return 1; |
| 266 | 266 | } |
| 267 | 267 | rc = establish_proxy_tunnel(sBio); |
| 268 | 268 | if( rc<200||rc>299 ){ |
| 269 | + ssl_set_errmsg("SSL: proxy connect failed with HTTP status code %d", rc); | |
| 269 | 270 | return 1; |
| 270 | 271 | } |
| 271 | 272 | |
| 272 | 273 | g.urlPath = g.proxyUrlPath; |
| 273 | 274 | |
| 274 | 275 |
| --- src/http_ssl.c | |
| +++ src/http_ssl.c | |
| @@ -264,10 +264,11 @@ | |
| 264 | ssl_close(); |
| 265 | return 1; |
| 266 | } |
| 267 | rc = establish_proxy_tunnel(sBio); |
| 268 | if( rc<200||rc>299 ){ |
| 269 | return 1; |
| 270 | } |
| 271 | |
| 272 | g.urlPath = g.proxyUrlPath; |
| 273 | |
| 274 |
| --- src/http_ssl.c | |
| +++ src/http_ssl.c | |
| @@ -264,10 +264,11 @@ | |
| 264 | ssl_close(); |
| 265 | return 1; |
| 266 | } |
| 267 | rc = establish_proxy_tunnel(sBio); |
| 268 | if( rc<200||rc>299 ){ |
| 269 | ssl_set_errmsg("SSL: proxy connect failed with HTTP status code %d", rc); |
| 270 | return 1; |
| 271 | } |
| 272 | |
| 273 | g.urlPath = g.proxyUrlPath; |
| 274 | |
| 275 |