From ee774479deb609fdb6989c7c452d6007ab4d3384 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 5 Feb 2012 11:50:49 +0100 Subject: session: Use a struct for all options. --- src/config.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/config.c') diff --git a/src/config.c b/src/config.c index d9a95a23..bb814916 100644 --- a/src/config.c +++ b/src/config.c @@ -195,7 +195,7 @@ static int ssh_config_parse_line(ssh_session session, const char *line, switch (opcode) { case SOC_HOST: *parsing = 0; - lowerhost = (session->host) ? ssh_lowercase(session->host) : NULL; + lowerhost = (session->opts.host) ? ssh_lowercase(session->opts.host) : NULL; for (p = ssh_config_get_str(&s, NULL); p && *p; p = ssh_config_get_str(&s, NULL)) { if (match_hostname(lowerhost, p, strlen(p))) { @@ -211,7 +211,7 @@ static int ssh_config_parse_line(ssh_session session, const char *line, } break; case SOC_PORT: - if (session->port == 22) { + if (session->opts.port == 22) { p = ssh_config_get_str(&s, NULL); if (p && *parsing) { ssh_options_set(session, SSH_OPTIONS_PORT_STR, p); @@ -219,7 +219,7 @@ static int ssh_config_parse_line(ssh_session session, const char *line, } break; case SOC_USERNAME: - if (session->username == NULL) { + if (session->opts.username == NULL) { p = ssh_config_get_str(&s, NULL); if (p && *parsing) { ssh_options_set(session, SSH_OPTIONS_USER, p); -- cgit v1.2.3