Skip to content

Commit

Permalink
security: fix Incorrect conversion of an integer
Browse files Browse the repository at this point in the history
  • Loading branch information
cpodurgiel@dmp.corp committed Sep 13, 2024
1 parent 70c68e9 commit 1025693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/corazawaf/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -1375,7 +1375,7 @@ func (tx *Transaction) AuditLog() *auditlog.Log {
hostPort, _ := strconv.Atoi(tx.variables.serverPort.Get())

// Convert the transaction fullRequestLength to Int32
requestLength, err := strconv.Atoi(tx.variables.fullRequestLength.Get())
requestLength, err := strconv.ParseInt(tx.variables.fullRequestLength.Get(), 10, 32)
if err != nil {
requestLength = 0
tx.DebugLogger().Error().
Expand Down

0 comments on commit 1025693

Please sign in to comment.