aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2019-02-22 11:09:15 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-02-22 11:41:40 +0100
commit1af10fcdb300e86de8a9930e1f9fd68443a94a52 (patch)
tree090639ec466171cbec2a4fc16dfadb0535e97d6c /src
parent8a73e481845cda7c29e350e92300dcec0e314f69 (diff)
downloadlibssh-1af10fcdb300e86de8a9930e1f9fd68443a94a52.tar.gz
libssh-1af10fcdb300e86de8a9930e1f9fd68443a94a52.tar.xz
libssh-1af10fcdb300e86de8a9930e1f9fd68443a94a52.zip
config: Avoid buffer overflow
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src')
-rw-r--r--src/config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c
index 840f55a9..e45f35ff 100644
--- a/src/config.c
+++ b/src/config.c
@@ -175,6 +175,7 @@ static struct ssh_config_match_keyword_table_s ssh_config_match_keyword_table[]
{ "originalhost", MATCH_ORIGINALHOST },
{ "user", MATCH_USER },
{ "localuser", MATCH_LOCALUSER },
+ { NULL, MATCH_UNKNOWN },
};
static int ssh_config_parse_line(ssh_session session, const char *line,