mirror of https://github.com/daffainfo/nuclei.git
Merge pull request #1738 from projectdiscovery/issue-1729-nil-crash
Fix for nil unexpected return value in workflow executiondev
commit
81f75ffb03
|
@ -357,6 +357,7 @@ func (r *Runner) RunEnumeration() error {
|
||||||
if r.issuesClient != nil {
|
if r.issuesClient != nil {
|
||||||
r.issuesClient.Close()
|
r.issuesClient.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
if !results.Load() {
|
if !results.Load() {
|
||||||
gologger.Info().Msgf("No results found. Better luck next time!")
|
gologger.Info().Msgf("No results found. Better luck next time!")
|
||||||
}
|
}
|
||||||
|
@ -425,7 +426,7 @@ func (r *Runner) executeTemplatesInput(store *loader.Store, engine *core.Engine)
|
||||||
|
|
||||||
// 0 matches means no templates were found in directory
|
// 0 matches means no templates were found in directory
|
||||||
if templateCount == 0 {
|
if templateCount == 0 {
|
||||||
return nil, errors.New("no valid templates were found")
|
return &atomic.Bool{}, errors.New("no valid templates were found")
|
||||||
}
|
}
|
||||||
|
|
||||||
// tracks global progress and captures stdout/stderr until p.Wait finishes
|
// tracks global progress and captures stdout/stderr until p.Wait finishes
|
||||||
|
|
Loading…
Reference in New Issue