Python: Clean up Ssl.qll

This commit is contained in:
Taus
2021-06-15 14:37:24 +00:00
committed by GitHub
parent 82fab3ba75
commit e90ec807ef

View File

@@ -39,11 +39,11 @@ API::Node sslContextInstance() {
result = API::moduleImport("ssl").getMember(["SSLContext", "create_default_context"]).getReturn()
}
class WrapSocketCall extends ConnectionCreation, DataFlow::CallCfgNode {
class WrapSocketCall extends ConnectionCreation, DataFlow::MethodCallNode {
WrapSocketCall() { this = sslContextInstance().getMember("wrap_socket").getACall() }
override DataFlow::Node getContext() {
result = this.getFunction().(DataFlow::AttrRead).getObject()
result = this.getReceiver()
}
}