g10: Optimize key iteration.
authorJustus Winter <justus@g10code.com>
Tue, 15 Nov 2016 14:33:09 +0000 (15:33 +0100)
committerJustus Winter <justus@g10code.com>
Tue, 15 Nov 2016 14:38:09 +0000 (15:38 +0100)
commit12834e84aca9d74800245f0f2f2e6b5123e76173
tree4e976327e68c15200b2561f5044d3722e431667c
parentd20107f6da094edd782947abb357abae5129a12c
g10: Optimize key iteration.

* g10/getkey.c (get_best_pubkey_byname): Use the node returned by
'getkey_next' instead of doing another lookup.

Signed-off-by: Justus Winter <justus@g10code.com>
g10/getkey.c