diff --git a/src/responder/ssh/ssh_cmd.c b/src/responder/ssh/ssh_cmd.c index b9e630bb16c..29505d05dff 100644 --- a/src/responder/ssh/ssh_cmd.c +++ b/src/responder/ssh/ssh_cmd.c @@ -87,8 +87,7 @@ static errno_t ssh_cmd_get_user_pubkeys(struct cli_ctx *cli_ctx) cmd_ctx->cli_ctx = cli_ctx; - ret = ssh_protocol_parse_user(cli_ctx, cli_ctx->rctx->default_domain, - &cmd_ctx->name, &cmd_ctx->domain); + ret = ssh_protocol_parse_user(cli_ctx, &cmd_ctx->name, &cmd_ctx->domain); if (ret != EOK) { DEBUG(SSSDBG_CRIT_FAILURE, "Invalid request message!\n"); goto done; diff --git a/src/responder/ssh/ssh_private.h b/src/responder/ssh/ssh_private.h index 720b5ccf6e0..005652ac3eb 100644 --- a/src/responder/ssh/ssh_private.h +++ b/src/responder/ssh/ssh_private.h @@ -50,7 +50,6 @@ struct sss_cmd_table *get_ssh_cmds(void); errno_t ssh_protocol_parse_user(struct cli_ctx *cli_ctx, - const char *default_domain, const char **_name, const char **_domain); diff --git a/src/responder/ssh/ssh_protocol.c b/src/responder/ssh/ssh_protocol.c index 5a9081bb729..bfd118db33c 100644 --- a/src/responder/ssh/ssh_protocol.c +++ b/src/responder/ssh/ssh_protocol.c @@ -136,7 +136,6 @@ static void got_ssh_keys(struct tevent_req *req) static errno_t ssh_protocol_parse_request(struct cli_ctx *cli_ctx, - const char *default_domain, const char **_name, const char **_alias, const char **_domain) @@ -209,8 +208,6 @@ ssh_protocol_parse_request(struct cli_ctx *cli_ctx, return EINVAL; } c += domain_len; - } else { - domain = default_domain; } DEBUG(SSSDBG_TRACE_FUNC, @@ -234,12 +231,10 @@ ssh_protocol_parse_request(struct cli_ctx *cli_ctx, errno_t ssh_protocol_parse_user(struct cli_ctx *cli_ctx, - const char *default_domain, const char **_name, const char **_domain) { - return ssh_protocol_parse_request(cli_ctx, default_domain, - _name, NULL, _domain); + return ssh_protocol_parse_request(cli_ctx, _name, NULL, _domain); } errno_t @@ -248,5 +243,5 @@ ssh_protocol_parse_host(struct cli_ctx *cli_ctx, const char **_alias, const char **_domain) { - return ssh_protocol_parse_request(cli_ctx, NULL, _name, _alias, _domain); + return ssh_protocol_parse_request(cli_ctx, _name, _alias, _domain); }