X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=wotsap.c;h=8990787a135b9df43eabb13964d44bc3d5555ed0;hb=d781cc7c24d81c7461a2a5a6bf5125c0e5982d57;hp=339b949b798ddbdea60639f598613512ac982ced;hpb=737508d00d0d568885a7eb7391448ac421b1d45c;p=onak.git diff --git a/wotsap.c b/wotsap.c index 339b949..8990787 100644 --- a/wotsap.c +++ b/wotsap.c @@ -139,12 +139,16 @@ static void wotsap(uint64_t keyid, char *dir) sigcount = 0; while (sigll != NULL) { addkey = (struct stats_key *) sigll->object; - if (addkey->colour == 0) { + if (addkey->colour == 0 && !addkey->revoked) { uid = config.dbbackend->keyid2uid(addkey->keyid); if (uid != NULL) { - addkey->colour = ++curidx; - pending = lladdend(pending, addkey); - output_key(names, keys, addkey->keyid); + /* Force it to be loaded so we know if it's revoked */ + config.dbbackend->cached_getkeysigs(addkey->keyid); + if (!addkey->revoked) { + addkey->colour = ++curidx; + pending = lladdend(pending, addkey); + output_key(names, keys, addkey->keyid); + } } } if (addkey->colour != 0) {