diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2019-05-28 08:43:49 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-05-28 09:18:53 +0200 |
commit | 328a631a0f28f84208ea079486011ea7b0c82c35 (patch) | |
tree | c94acad9c2c23678310e03e757d12cad31e5cb6c /src/config.c | |
parent | a7e17a34ad7b29e06120e9abfeb82149c742fcf1 (diff) | |
download | libssh-328a631a0f28f84208ea079486011ea7b0c82c35.tar.gz libssh-328a631a0f28f84208ea079486011ea7b0c82c35.tar.xz libssh-328a631a0f28f84208ea079486011ea7b0c82c35.zip |
config: Add missing NULL check
CID 1398303
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c index c0471136..65f15b89 100644 --- a/src/config.c +++ b/src/config.c @@ -695,6 +695,10 @@ ssh_config_parse_line(ssh_session session, break; case SOC_PROXYJUMP: p = ssh_config_get_str_tok(&s, NULL); + if (p == NULL) { + SAFE_FREE(x); + return -1; + } /* We share the seen value with the ProxyCommand */ rv = ssh_config_parse_proxy_jump(session, p, (*parsing && !seen[SOC_PROXYCOMMAND])); |