Skip to content

Commit

Permalink
Missed a few calls in the refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Dec 15, 2023
1 parent 53ea2e3 commit b8f39b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/analyze/webservicefuncs.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func analysisfuncs(ws *webservice) {
}
var results returnobject

for _, edge := range engine.AllEdgesSlice() {
for _, edge := range engine.Edges() {
if !edge.IsHidden() {
results.Methods = append(results.Methods, filterinfo{
Name: edge.String(),
Expand Down Expand Up @@ -282,7 +282,7 @@ func analysisfuncs(ws *webservice) {
if strings.HasPrefix(potentialfilter, "pwn_") {
prefix := potentialfilter[4 : len(potentialfilter)-2]
suffix := potentialfilter[len(potentialfilter)-2:]
edge := engine.E(prefix)
edge := engine.LookupEdge(prefix)
if edge == engine.NonExistingEdgeType {
continue
}
Expand Down
2 changes: 1 addition & 1 deletion modules/query/ldapparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ valueloop:
if edgename == "*" {
edge = engine.AnyEdgeType
} else {
edge = engine.E(edgename)
edge = engine.LookupEdge(edgename)
if edge == engine.NonExistingEdgeType {
return nil, nil, fmt.Errorf("Could not convert value %v to edge", edgename)
}
Expand Down

0 comments on commit b8f39b4

Please sign in to comment.