Skip to content

Commit

Permalink
Allowing 0 expansion when doing analysis. Not useful but it seems right.
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Jun 15, 2022
1 parent 78332ce commit 8fc7446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/engine/analyzeobjects.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func AnalyzeObjects(opts AnalyzeObjectsOptions) (pg PwnGraph) {
newconnectionsmap[PwnPair{Source: object, Target: pwntarget}] = detectedmethods
}

if opts.MaxOutgoingConnections == 0 || len(newconnectionsmap) < opts.MaxOutgoingConnections {
if opts.MaxOutgoingConnections == -1 || len(newconnectionsmap) < opts.MaxOutgoingConnections {
for pwnpair, detectedmethods := range newconnectionsmap {
connectionsmap[pwnpair] = detectedmethods
if _, found := implicatedobjectsmap[pwnpair.Target]; !found {
Expand Down

0 comments on commit 8fc7446

Please sign in to comment.