Skip to content

Commit

Permalink
Merge pull request #378 from lunasec-io/fix-file-not-closed
Browse files Browse the repository at this point in the history
close reader which is left open in log4shell cli

Former-commit-id: 569b46c
Former-commit-id: 303d657fa85df7d55910e08a9c5b1b8f9fb88f00
  • Loading branch information
breadchris authored Dec 21, 2021
2 parents e3859a4 + 7a3c71d commit a45854a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tools/log4shell/constants/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
//
package constants

const Version = "1.4.1"
const Version = "1.4.2"
2 changes: 2 additions & 0 deletions tools/log4shell/scan/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ func (s *Log4jDirectoryScanner) scanArchiveFile(
Msg("unable to open class file")
return
}
defer reader.Close()

return s.processArchiveFile(reader, path, file.Name)
}

Expand Down

0 comments on commit a45854a

Please sign in to comment.