- if (fetch_key(keyid, &publickey)) {
- if (publickey != NULL) {
- key_index(publickey, verbose, fingerprint,
- true);
- free_publickey(publickey);
- found = true;
- }
- }
+ count = fetch_key(keyid, &publickey, false);
+ } else {
+ count = fetch_key_text(search, &publickey);