Skip to content

Commit

Permalink
Fix stop-at-first-match in headless mode fuzzing (#5330)
Browse files Browse the repository at this point in the history
  • Loading branch information
RamanaReddy0M authored Jul 15, 2024
1 parent bc229a4 commit 3e1cd27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/protocols/headless/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ func (request *Request) executeRequestWithPayloads(input *contextargs.Context, p
}

dumpResponse(event, request.options, responseBody, input.MetaInput.Input)
shouldStopAtFirstMatch := request.StopAtFirstMatch || request.options.StopAtFirstMatch || request.options.Options.StopAtFirstMatch
if shouldStopAtFirstMatch && event.HasOperatorResult() {
return types.ErrNoMoreRequests
}
return nil
}

Expand Down

0 comments on commit 3e1cd27

Please sign in to comment.