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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/agent/command-ssh.c b/agent/command-ssh.c
index b8f0d20b0..be2a8385d 100644
--- a/agent/command-ssh.c
+++ b/agent/command-ssh.c
@@ -2321,7 +2321,7 @@ static gpg_error_t
ssh_identity_register (ctrl_t ctrl, gcry_sexp_t key, int ttl)
{
gpg_error_t err;
- unsigned char key_grip_raw[21];
+ unsigned char key_grip_raw[20];
char key_grip[41];
unsigned char *buffer = NULL;
unsigned int buffer_n;
@@ -2334,8 +2334,6 @@ ssh_identity_register (ctrl_t ctrl, gcry_sexp_t key, int ttl)
if (err)
goto out;
- key_grip_raw[sizeof (key_grip_raw) - 1] = 0; /* FIXME: Why?? */
-
/* Check whether the key is already in our key storage. Don't do
anything then. */
if ( !agent_key_available (key_grip_raw) )