Skip to content

Commit

Permalink
login-common: Include local_name in login_var_expand_table
Browse files Browse the repository at this point in the history
This way it can be used in login_log_format
  • Loading branch information
cmouse authored and GitLab committed Oct 20, 2016
1 parent 1210c14 commit 290b91a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/login-common/client-common.c
Expand Up @@ -507,6 +507,7 @@ static struct var_expand_table login_var_expand_empty_tab[] = {
{ '\0', NULL, "auth_username" },
{ '\0', NULL, "auth_domain" },
{ '\0', NULL, "listener" },
{ '\0', NULL, "local_name" },
{ '\0', NULL, NULL }
};

Expand Down Expand Up @@ -581,6 +582,7 @@ get_var_expand_table(struct client *client)
tab[24].value = tab[21].value;
}
tab[25].value = client->listener_name;
tab[26].value = str_sanitize(client->local_name, 256);
return tab;
}

Expand Down

0 comments on commit 290b91a

Please sign in to comment.