aboutsummaryrefslogtreecommitdiff
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:42:26 +0100
commit810dbd3db11f4c6daab56db7c28f786044d57d84 (patch)
tree70b43b81191bc48d94c04c3479840e587614e1c6
parentfa6aa125a260cbd9eddbbde27d8dfadc6be9f9bc (diff)
downloadlibssh-810dbd3db11f4c6daab56db7c28f786044d57d84.tar.gz
libssh-810dbd3db11f4c6daab56db7c28f786044d57d84.tar.xz
libssh-810dbd3db11f4c6daab56db7c28f786044d57d84.zip
config: Avoid buffer overflow
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 1af10fcdb300e86de8a9930e1f9fd68443a94a52)
-rw-r--r--src/config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c
index 3d87a178..27e6ca4b 100644
--- a/src/config.c
+++ b/src/config.c
@@ -210,6 +210,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,