From b5f585f7d796313cf7ae3d3fd35ed462a1f3d574 Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Sun, 17 Apr 2011 16:48:44 -0400 Subject: Another PASSWD --preset fix. Check for an error before presetting the passphrase. --- agent/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'agent/command.c') diff --git a/agent/command.c b/agent/command.c index d2ed23a67..9f45afbb0 100644 --- a/agent/command.c +++ b/agent/command.c @@ -1530,7 +1530,7 @@ cmd_passwd (assuan_context_t ctx, char *line) } } } - if (opt_preset) + if (!err && opt_preset) { char hexgrip[40+1]; bin2hex(grip, 20, hexgrip); -- cgit