Skip to content

Commit

Permalink
always set inband transaction even if we have no rules (#2681)
Browse files Browse the repository at this point in the history
  • Loading branch information
blotus committed Dec 22, 2023
1 parent bc9bfa8 commit a62e28f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/acquisition/modules/appsec/appsec_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,11 @@ func (r *AppsecRunner) processRequest(tx appsec.ExtendedTransaction, request *ap
}

func (r *AppsecRunner) ProcessInBandRules(request *appsec.ParsedRequest) error {
tx := appsec.NewExtendedTransaction(r.AppsecInbandEngine, request.UUID)
r.AppsecRuntime.InBandTx = tx
if len(r.AppsecRuntime.InBandRules) == 0 {
return nil
}
tx := appsec.NewExtendedTransaction(r.AppsecInbandEngine, request.UUID)
r.AppsecRuntime.InBandTx = tx
err := r.processRequest(tx, request)
return err
}
Expand Down

0 comments on commit a62e28f

Please sign in to comment.