aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command.c
diff options
context:
space:
mode:
authorBen Kibbey <[email protected]>2011-04-17 20:48:44 +0000
committerWerner Koch <[email protected]>2011-04-18 08:20:36 +0000
commitb5f585f7d796313cf7ae3d3fd35ed462a1f3d574 (patch)
tree1bd503c264b48c65f9f30aa9a6debaca8d69635e /agent/command.c
parentFixed PASSWD --preset. (diff)
downloadgnupg-b5f585f7d796313cf7ae3d3fd35ed462a1f3d574.tar.gz
gnupg-b5f585f7d796313cf7ae3d3fd35ed462a1f3d574.zip
Another PASSWD --preset fix.
Check for an error before presetting the passphrase.
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 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);