Skip to content

Commit

Permalink
fix nil deref
Browse files Browse the repository at this point in the history
  • Loading branch information
dogancanbakir committed Jun 26, 2024
1 parent 19ccde1 commit ad5c03a
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 ad5c03a

Please sign in to comment.