Skip to content

Commit 5929f66

Browse files
edvraaowen-mc
authored andcommitted
No need for Function f
1 parent 06c328c commit 5929f66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ql/src/experimental/CWE-1004/AuthCookie.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ class GorillaCookieStoreSaveTrackingConfiguration extends DataFlow::Configuratio
174174
override predicate isSink(DataFlow::Node sink) { sink instanceof GorillaSessionSaveSink }
175175

176176
override predicate isAdditionalFlowStep(DataFlow::Node pred, DataFlow::Node succ) {
177-
exists(Function f, DataFlow::CallNode cn | cn = f.getACall() |
178-
f.getQualifiedName() = "github.com/gorilla/sessions.CookieStore.Get" and
177+
exists(DataFlow::CallNode cn |
178+
cn.getTarget().getQualifiedName() = "github.com/gorilla/sessions.CookieStore.Get" and
179179
pred = cn.getReceiver() and
180180
succ = cn.getResult(0)
181181
)

0 commit comments

Comments
 (0)