gpg: More fix of get_best_pubkey_byname.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 17 Oct 2019 01:46:34 +0000 (10:46 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 17 Oct 2019 01:46:34 +0000 (10:46 +0900)
* 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>
g10/getkey.c

index 0772094..0267e74 100644 (file)
@@ -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];