aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/command.c')
-rw-r--r--agent/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/command.c b/agent/command.c
index 823b233bf..e57c69d05 100644
--- a/agent/command.c
+++ b/agent/command.c
@@ -1924,7 +1924,7 @@ cmd_import_key (assuan_context_t ctx, char *line)
&key, &passphrase);
if (err)
goto leave;
- realkeylen = gcry_sexp_canon_len (key, keylen, NULL, &err);
+ realkeylen = gcry_sexp_canon_len (key, 0, NULL, &err);
if (!realkeylen)
goto leave; /* Invalid canonical encoded S-expression. */
if (passphrase)