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
  • Loading branch information
breadchris committed Dec 21, 2021
2 parents 7a160ba + 71adc6a commit 569b46c
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 569b46c

Please sign in to comment.