X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/34b03028378025ad22c8d29f70e81109cee690c2..36eef8ab7ec7c90e97f2371d7ca8c80d52fd3e27:/keydb_db3.c diff --git a/keydb_db3.c b/keydb_db3.c index 6d98d38..6177ac7 100644 --- a/keydb_db3.c +++ b/keydb_db3.c @@ -21,7 +21,7 @@ #include "charfuncs.h" #include "keydb.h" #include "keyid.h" -#include "keyindex.h" +#include "decodekey.h" #include "keystructs.h" #include "mem.h" #include "onak-conf.h" @@ -309,7 +309,8 @@ int fetch_key_text(const char *search, struct openpgp_publickey **publickey) llfree(wordlist, NULL); wordlist = NULL; - for (newkeylist = keylist; newkeylist != NULL; + for (newkeylist = keylist; + newkeylist != NULL && numkeys < config.maxkeys; newkeylist = newkeylist->next) { keyid = 0;