Skip to content

Commit a62e28f

Browse files
authored
always set inband transaction even if we have no rules (#2681)
1 parent bc9bfa8 commit a62e28f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/acquisition/modules/appsec/appsec_runner.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,11 @@ func (r *AppsecRunner) processRequest(tx appsec.ExtendedTransaction, request *ap
192192
}
193193

194194
func (r *AppsecRunner) ProcessInBandRules(request *appsec.ParsedRequest) error {
195+
tx := appsec.NewExtendedTransaction(r.AppsecInbandEngine, request.UUID)
196+
r.AppsecRuntime.InBandTx = tx
195197
if len(r.AppsecRuntime.InBandRules) == 0 {
196198
return nil
197199
}
198-
tx := appsec.NewExtendedTransaction(r.AppsecInbandEngine, request.UUID)
199-
r.AppsecRuntime.InBandTx = tx
200200
err := r.processRequest(tx, request)
201201
return err
202202
}

0 commit comments

Comments
 (0)