Skip to content

Commit

Permalink
Fix stop-at-first-match in headless mode fuzzing
Browse files Browse the repository at this point in the history
  • Loading branch information
RamanaReddy0M committed Jun 25, 2024
1 parent 87b9fbd commit 0245c98
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 0245c98

Please sign in to comment.