Skip to content

Commit

Permalink
fix status codes
Browse files Browse the repository at this point in the history
  • Loading branch information
1lann committed Dec 17, 2021
1 parent 2e2bd4d commit d33e82e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

dist/
.idea/
*.zip
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ func main() {
status, desc := checkJar(osPathname, nil, 0, 0)
if *mode == "list" {
switch status {
case StatusVulnerable, StatusMaybe:
case StatusVulnerable, StatusMaybe, StatusOld:
atomic.StoreUint32(&hasNotableResults, 1)
}
} else {
switch status {
case StatusVulnerable, StatusMaybe, StatusPatched:
case StatusVulnerable, StatusMaybe, StatusOld, StatusPatched:
atomic.StoreUint32(&hasNotableResults, 1)
}
}
Expand Down

0 comments on commit d33e82e

Please sign in to comment.