alecmuffett / certificate-transparency

Automatically exported from code.google.com/p/certificate-transparency
0 stars 0 forks source link

Segfault in ct connect when server is unavailable #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

1. Run

client/ct connect --ct_server_public_key=testdata/ct-server-key-public.pem 
--ssl_server=127.0.0.1 --ssl_server_port=8124 
--ssl_client_trusted_cert_dir=/tmp/ct-ca --ssl_client_require_sct

when there is no server listening on port 8124

Expected:
E0408 15:46:56.366701 11503 client.cc:44] Connection to 127.0.0.1:8124 failed: 
Connection refused [111]

Got:
E0408 15:46:56.366701 11503 client.cc:44] Connection to 127.0.0.1:8124 failed: 
Connection refused [111]
./test_running_ssl_server.sh: line 5: 11503 Segmentation fault (core dumped)

Patch attached.

Original issue reported on code.google.com by beld...@gmail.com on 8 Apr 2014 at 12:09

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for that. Before I can accept any patches, you need to sign Google's 
CLA: https://developers.google.com/open-source/cla/individual.

Original comment by benl@google.com on 8 Apr 2014 at 1:18

GoogleCodeExporter commented 9 years ago
CLA is submitted. 

Original comment by beld...@gmail.com on 8 Apr 2014 at 1:33

GoogleCodeExporter commented 9 years ago
This issue was closed by revision cfd002c91c96.

Original comment by benl@google.com on 8 Apr 2014 at 1:58