X-Git-Url: http://git.sthu.org/?a=blobdiff_plain;f=caff%2Fpgp-fixkey;h=6064bab450f9c161a0c89e25eaf5b432044ba7c1;hb=03fe24eba2e5a9d1d829305aada0489cdf88f842;hp=c4e7c9f0eb70960a9596dc4932abab841bd46981;hpb=183c48c91baf37db6cc4d7dea06ed9222a7391d3;p=pgp-tools.git diff --git a/caff/pgp-fixkey b/caff/pgp-fixkey index c4e7c9f..6064bab 100755 --- a/caff/pgp-fixkey +++ b/caff/pgp-fixkey @@ -262,9 +262,11 @@ if (scalar @KEYIDS == 0) { if ($type eq 'pub') { $thiskey = $keyid; debug("Found key $thiskey"); + } elsif (!defined $thiskey) { + next; } elsif ($type eq 'sig' || $type eq 'rev') { if (($keyid eq '0' x 16) || ($created == 0)) { - push @KEYIDS, $thiskey if defined $thiskey; + push @KEYIDS, $thiskey; info("Adding $thiskey"); $thiskey = undef; };