Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault on help. #52

Closed
gbjtv opened this issue Dec 15, 2015 · 1 comment
Closed

Segmentation fault on help. #52

gbjtv opened this issue Dec 15, 2015 · 1 comment

Comments

@gbjtv
Copy link

gbjtv commented Dec 15, 2015

This is for version 1.1.0. When I run hitch --config=hitch/hitch.rsa.conf --help, hitch segfaults during the help message.

server:~/scripts$ hitch --config=hitch/hitch.rsa.conf --help
Usage: hitch [OPTIONS] PEM

This is hitch, The Scalable TLS Unwrapping Daemon.

CONFIGURATION:

        --config=FILE      Load configuration from specified file.

ENCRYPTION METHODS:

      --tls                   TLSv1 (default. No SSLv3)
      --ssl                   SSLv3 (enables SSLv3)
  -c  --ciphers=SUITE         Sets allowed ciphers (Default: "ALL:!MEDIUM:!LOW:!WEAK:!EXPORT:!DES:!PSK")
  -e  --ssl-engine=NAME       Sets OpenSSL engine (Default: "")
  -O  --prefer-server-ciphers Prefer server list order

SOCKET:

  --client                      Enable client proxy mode
  -b  --backend=[HOST]:PORT     Backend [connect] (default is "[127.0.0.1]:8080")
Segmentation fault
@lkarsten
Copy link
Contributor

lkarsten commented Jan 4, 2016

Thanks for reporting. I've reproduced it now.

Related: #22.

diff --git a/src/tests/test08-test-configs b/src/tests/test08-test-configs
index 6e295a2..9e65ca2 100755
--- a/src/tests/test08-test-configs
+++ b/src/tests/test08-test-configs
@@ -18,3 +18,10 @@ test "$?" = "0" || die "Valid config test08c.cfg unparseable?"
 $HITCH --test --config=configs/test08d.cfg certs/default.example.com 2>/dev/null 1>&2
 test "$?" = "0" || die "Valid config test08d.cfg unparseable?"

+# Issue #52.
+$HITCH --config=configs/default.cfg --help 2>/dev/null 1>&2
+test "$?" = "0" || die "--help after --config does not work as expected."
+
+# Works as expected.
+$HITCH --test --config=configs/default.cfg 2>/dev/null 1>&2
+test "$?" = "1" || die "--help with --config does not work as expected."

@daghf daghf closed this as completed in 054a3cf Jan 4, 2016
@ghost ghost mentioned this issue Nov 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants