Skip to content

Commit e90ec80

Browse files
authored
Python: Clean up Ssl.qll
1 parent 82fab3b commit e90ec80

File tree

1 file changed

+2
-2
lines changed
  • python/ql/src/Security/CWE-327

1 file changed

+2
-2
lines changed

python/ql/src/Security/CWE-327/Ssl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ API::Node sslContextInstance() {
3939
result = API::moduleImport("ssl").getMember(["SSLContext", "create_default_context"]).getReturn()
4040
}
4141

42-
class WrapSocketCall extends ConnectionCreation, DataFlow::CallCfgNode {
42+
class WrapSocketCall extends ConnectionCreation, DataFlow::MethodCallNode {
4343
WrapSocketCall() { this = sslContextInstance().getMember("wrap_socket").getACall() }
4444

4545
override DataFlow::Node getContext() {
46-
result = this.getFunction().(DataFlow::AttrRead).getObject()
46+
result = this.getReceiver()
4747
}
4848
}
4949

0 commit comments

Comments
 (0)