diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2017-06-08 00:22:02 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2017-06-08 10:45:53 +0200 |
commit | 0cffb88b80b1e8b7e292646b955e9b9ca02315c4 (patch) | |
tree | bf6d287fe233b9da58424a41afd184384959f18c /src/config.c | |
parent | b0c2ca1b6621353dd7b573bb331e635efab9cc84 (diff) | |
download | libssh-0cffb88b80b1e8b7e292646b955e9b9ca02315c4.tar.gz libssh-0cffb88b80b1e8b7e292646b955e9b9ca02315c4.tar.xz libssh-0cffb88b80b1e8b7e292646b955e9b9ca02315c4.zip |
config: fix buffer underflow with unrecognized opcodes
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c index 519926e7..6187c90f 100644 --- a/src/config.c +++ b/src/config.c @@ -218,7 +218,7 @@ static int ssh_config_parse_line(ssh_session session, const char *line, } opcode = ssh_config_get_opcode(keyword); - if (*parsing == 1 && opcode != SOC_HOST) { + if (*parsing == 1 && opcode != SOC_HOST && opcode != SOC_UNSUPPORTED) { if (seen[opcode] != 0) { return 0; } |