aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command-ssh.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/command-ssh.c')
-rw-r--r--agent/command-ssh.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/agent/command-ssh.c b/agent/command-ssh.c
index 364a8ccb4..a81468125 100644
--- a/agent/command-ssh.c
+++ b/agent/command-ssh.c
@@ -1031,7 +1031,8 @@ search_control_file (ssh_control_file_t cf, const char *hexgrip,
assert (strlen (hexgrip) == 40 );
- *r_disabled = 0;
+ if (r_disabled)
+ *r_disabled = 0;
if (r_ttl)
*r_ttl = 0;
if (r_confirm)
@@ -1047,7 +1048,8 @@ search_control_file (ssh_control_file_t cf, const char *hexgrip,
}
if (!err)
{
- *r_disabled = cf->item.disabled;
+ if (r_disabled)
+ *r_disabled = cf->item.disabled;
if (r_ttl)
*r_ttl = cf->item.ttl;
if (r_confirm)