config: Preserve the seen array among invocations

This follows the OpenSSH behavior of parsing subseqent configuration
files, while applying only the first option.

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jakub Jelen
2018-10-30 12:49:22 +01:00
committed by Andreas Schneider
parent 4a95a35bc6
commit de7405f1c7
3 changed files with 25 additions and 6 deletions

View File

@@ -220,6 +220,7 @@ struct ssh_session_struct {
int flags;
int nodelay;
bool config_processed;
uint8_t *options_seen;
} opts;
/* counters */
ssh_counter socket_counter;