commit | 45eff44e28a36be113a933ee27f16ff5e92775bb | [log] [tgz] |
---|---|---|
author | William Lallemand <wlallemand@haproxy.com> | Mon Jun 19 15:57:55 2017 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Jun 20 14:43:28 2017 +0200 |
tree | f306b86be08c29c65447dc8890d7f7ae9687b035 | |
parent | 4a5be934f121dd227dd22afb96dbf74b87d7dc65 [diff] |
BUG/MEDIUM: fix segfault when no argument to -x option This patch fixes a segfault in the command line parser. When haproxy is launched with -x with no argument and -x is the latest option in argv it segfaults. Use usage() insteads of exit() on error.