summaryrefslogtreecommitdiffstats
path: root/bin/updatelist
diff options
context:
space:
mode:
authorStefan Fritsch <sf@sfritsch.de>2007-08-16 20:58:17 +0000
committerStefan Fritsch <sf@sfritsch.de>2007-08-16 20:58:17 +0000
commit981d564c440812e180d31bfb781c74c124bb55bc (patch)
tree0919f09692eed70c03bd77539017f1d95ac1e206 /bin/updatelist
parent1bcd03948b6447a91d6c6ff0d049f7da045713eb (diff)
fix bug that empty list of cross-references was not deleted
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@6342 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/updatelist')
-rwxr-xr-xbin/updatelist4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/updatelist b/bin/updatelist
index 4a794225ab..b103d8b872 100755
--- a/bin/updatelist
+++ b/bin/updatelist
@@ -72,7 +72,7 @@ sub docve {
if ($cves{$cve}{rejected}) {
push @out, "\tREJECTED\n";
}
- if ($cves{$cve}{xref}) {
+ if (scalar @{$cves{$cve}{xref}} > 0) {
push @out, "\t{".join(" ", @{$cves{$cve}{xref}})."}\n";
}
if ($cves{$cve}{notes}) {
@@ -145,7 +145,7 @@ foreach my $cve (reverse sort { $cves{$a}{cve} cmp $cves{$b}{cve} } keys %cves)
if ($cves{$cve}{rejected}) {
print "\tREJECTED\n";
}
- if ($cves{$cve}{xref}) {
+ if (scalar @{$cves{$cve}{xref}} > 0) {
print "\t{".join(" ", @{$cves{$cve}{xref}})."}\n";
}
if (!$cves{$cve}{reserved} || $cves{$cve}{rejected} ) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy