summaryrefslogtreecommitdiffstats
path: root/g10/gpg.c
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@g10code.com>2015-10-19 15:04:45 +0200
committerNeal H. Walfield <neal@g10code.com>2015-10-19 20:11:03 +0200
commitc37621166e9cc2a818de73bc99287a393dbb5744 (patch)
tree04ea481092fb051584d9c47d01e76af48a31fc6a /g10/gpg.c
parentgpg: Improve function documentation and some comments. (diff)
downloadgnupg2-c37621166e9cc2a818de73bc99287a393dbb5744.tar.xz
gnupg2-c37621166e9cc2a818de73bc99287a393dbb5744.zip
gpg: Fix --desig-revoke.
* g10/revoke.c (gen_desig_revoke): Add additional parameter ctrl. Check that the secret key is available. If not, display an error message. -- Signed-off-by: Neal H. Walfield <neal@g10code.com> Regression-due-to: 8459bcf9
Diffstat (limited to 'g10/gpg.c')
-rw-r--r--g10/gpg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/g10/gpg.c b/g10/gpg.c
index cb610a11b..794d5ea56 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -4179,11 +4179,11 @@ main (int argc, char **argv)
break;
case aDesigRevoke:
- if( argc != 1 )
- wrong_args("--desig-revoke user-id");
- username = make_username(*argv);
- gen_desig_revoke( username, locusr );
- xfree( username );
+ if (argc != 1)
+ wrong_args ("--desig-revoke user-id");
+ username = make_username (*argv);
+ gen_desig_revoke (ctrl, username, locusr);
+ xfree (username);
break;
case aDeArmor: