Commit bec5d33f authored by Niels Möller's avatar Niels Möller
Browse files

* src/lshg.c (main_argp_parser): Check that make_gateway_address

doesn't return NULL.
(options2info): Use self->gateway.

Rev: src/lshg.c:1.12
parent 5082647d
...@@ -77,10 +77,8 @@ DEFINE_COMMAND(options2info) ...@@ -77,10 +77,8 @@ DEFINE_COMMAND(options2info)
struct exception_handler *e UNUSED) struct exception_handler *e UNUSED)
{ {
CAST(lshg_options, self, a); CAST(lshg_options, self, a);
make_gateway_address(self->super.local_user, COMMAND_RETURN(c, self->gateway);
} }
...@@ -211,6 +209,12 @@ main_argp_parser(int key, char *arg, struct argp_state *state) ...@@ -211,6 +209,12 @@ main_argp_parser(int key, char *arg, struct argp_state *state)
self->super.user, self->super.user,
self->super.remote); self->super.remote);
if (!self->gateway)
argp_error(state, "Local or remote user name, or the target host name, are too "
"strange for the gateway socket name construction.");
break; break;
case 'D': case 'D':
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment