diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2019-10-17 03:46:34 +0200 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2019-10-17 03:46:34 +0200 |
commit | e2c2b0fb2d9b31fa1b61803d04919645a9149996 (patch) | |
tree | 737355f408f822fa7c7356faafde662bd43391cc /g10 | |
parent | gpg: Fix two other cases in get_best_pubkey_byname. (diff) | |
download | gnupg2-e2c2b0fb2d9b31fa1b61803d04919645a9149996.tar.xz gnupg2-e2c2b0fb2d9b31fa1b61803d04919645a9149996.zip |
gpg: More fix of get_best_pubkey_byname.
* g10/getkey.c (get_best_pubkey_byname): Remove useless req_usage
setting of CTX.
Fixes-commit: f2734381ae1431e395a0bed16df2f4d5d13aa2c5
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'g10')
-rw-r--r-- | g10/getkey.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/g10/getkey.c b/g10/getkey.c index 077209415..0267e74ea 100644 --- a/g10/getkey.c +++ b/g10/getkey.c @@ -1491,7 +1491,6 @@ get_best_pubkey_byname (ctrl_t ctrl, enum get_pubkey_modes mode, u32 *keyid = pk_keyid (&best.key); ctx->exact = 1; ctx->nitems = 1; - ctx->req_usage = pk0.req_usage; ctx->items[0].mode = KEYDB_SEARCH_MODE_LONG_KID; ctx->items[0].u.kid[0] = keyid[0]; ctx->items[0].u.kid[1] = keyid[1]; |