X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=keydb_db4.c;h=f4fffa58849b90e7c5f4f0cc93e28b05f29d1300;hb=5d7fe5f83aafcf787f426cff450412d668d1128d;hp=0507511ea90098ff2df788b51969b88c70c7ea9a;hpb=95a2f93d4800b7e4da4e63e1bb6dd5de2a7dea09;p=onak.git diff --git a/keydb_db4.c b/keydb_db4.c index 0507511..f4fffa5 100644 --- a/keydb_db4.c +++ b/keydb_db4.c @@ -1180,7 +1180,10 @@ static int db4_store_key(struct openpgp_publickey *publickey, bool intrans, bool deadlock = false; struct skshash hash; - 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) { db4_starttrans();