Commit c6b539c8 authored by Niels Möller's avatar Niels Möller

* src/client.c (init_client_options): Initialize port to NULL, in

order to get the fallback from "ssh" -> 22 to work. FIXED in 1.2
branch.
(client_argp_parser): Fixed port error message not to try printing
NULL. FIXED in 1.2 branch.

Rev: src/client.c:1.137
parent 2dd85712
......@@ -427,7 +427,7 @@ init_client_options(struct client_options *self,
self->exit_code = exit_code;
self->not = 0;
self->port = "ssh";
self->port = NULL;
self->remote = NULL;
self->local_user = self->user = getenv("LOGNAME");
......@@ -1082,8 +1082,9 @@ client_argp_parser(int key, char *arg, struct argp_state *state)
options->remote = make_address_info_c(arg, "ssh", 22);
if (!options->remote)
argp_error(state, "Invalid port or service '%s'.", options->port);
argp_error(state, "Invalid port or service '%s'.",
options->port ? options->port : "22");
break;
}
else
......
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