Skip to content

Commit

Permalink
Merge pull request #1788 from projectdiscovery/fix_nil_deref
Browse files Browse the repository at this point in the history
fix nil deref
  • Loading branch information
Mzack9999 authored Jun 27, 2024
2 parents 19ccde1 + ad5c03a commit 2316be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,7 @@ func (r *Runner) RunEnumeration() {
respRaw = respRaw[:r.scanopts.MaxResponseBodySizeToSave]
}
data := reqRaw
if r.options.StoreChain && resp.Response.HasChain() {
if r.options.StoreChain && resp.Response != nil && resp.Response.HasChain() {
data = append(data, append([]byte("\n"), []byte(resp.Response.GetChain())...)...)
}
data = append(data, respRaw...)
Expand Down

0 comments on commit 2316be5

Please sign in to comment.