X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=keydb_fs.c;h=b7117bebab4ffeda8f4bf36a2b650eb3c600a256;hb=8d910718e5f13444b2948396564a809b2307f0cf;hp=eacf1c65b15cf1dae48c79e9e59f52503655f873;hpb=e0dd4d10f385cd19da389ec66622eea8aa66ae59;p=onak.git diff --git a/keydb_fs.c b/keydb_fs.c index eacf1c6..b7117be 100644 --- a/keydb_fs.c +++ b/keydb_fs.c @@ -336,7 +336,10 @@ static int fs_store_key(struct openpgp_publickey *publickey, bool intrans, uint32_t hashid; int i = 0; - get_keyid(publickey, &keyid); + if (get_keyid(publickey, &keyid) != ONAK_E_OK) { + logthing(LOGTHING_ERROR, "Couldn't find key ID for key."); + return 0; + } if (!intrans) fs_starttrans();