aboutsummaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config.c b/src/config.c
index 161985ef..79a64339 100644
--- a/src/config.c
+++ b/src/config.c
@@ -400,6 +400,9 @@ ssh_match_exec(ssh_session session, const char *command, bool negate)
/* TODO There should be more supported expansions */
cmd = ssh_path_expand_escape(session, command);
+ if (cmd == NULL) {
+ return 0;
+ }
rv = ssh_exec_shell(cmd);
if (rv > 0 && negate == true) {
result = 1;