Fossil SCM

Set the error message to indicate the HTTP status code returned on CONNECT to avoid segfault.

andybradford 2013-11-14 04:34 jan-httpsproxytunnel
Commit 87d5fef9ceb54d05266997affd33a9605e6a5a88
1 file changed +1
--- src/http_ssl.c
+++ src/http_ssl.c
@@ -264,10 +264,11 @@
264264
ssl_close();
265265
return 1;
266266
}
267267
rc = establish_proxy_tunnel(sBio);
268268
if( rc<200||rc>299 ){
269
+ ssl_set_errmsg("SSL: proxy connect failed with HTTP status code %d", rc);
269270
return 1;
270271
}
271272
272273
g.urlPath = g.proxyUrlPath;
273274
274275
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button