cope with a sig that has an empty create date, treat that
[pgp-tools.git] / caff / pgp-fixkey
index f35110d5460a0e1621dbcf400aac7ec6fd80914c..48d47be19e717b581ea0c41822fb527eed90cd78 100755 (executable)
@@ -265,7 +265,7 @@ if (scalar @KEYIDS == 0) {
                } elsif (!defined $thiskey) {
                        next;
                } elsif ($type eq 'sig' || $type eq 'rev') {
-                       if (($keyid eq '0' x 16) || ($created == 0)) {
+                       if (($keyid eq '0' x 16) || ($created eq "") || ($created == 0)) {
                                push @KEYIDS, $thiskey;
                                info("Key $thiskey needs cleaning.");
                                $thiskey = undef;