File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
python/ql/src/experimental/semmle/python/frameworks Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -122,13 +122,11 @@ private module LDAP {
122
122
)
123
123
or
124
124
// ldap_connection.set_option(ldap.OPT_X_TLS_%s, True)
125
- // ldap_connection.set_option(ldap.OPT_X_TLS_%s)
126
125
exists ( DataFlow:: CallCfgNode setOption |
127
126
setOption .getFunction ( ) .( DataFlow:: AttrRead ) .getObject ( ) .getALocalSource ( ) =
128
127
initialize and
129
128
setOption .getFunction ( ) .( DataFlow:: AttrRead ) .getAttributeName ( ) = "set_option" and
130
- setOption .getArg ( 0 ) =
131
- ldap ( ) .getMember ( "OPT_X_TLS_" + [ "ALLOW" , "TRY" , "DEMAND" , "HARD" ] ) .getAUse ( ) and
129
+ setOption .getArg ( 0 ) = ldap ( ) .getMember ( "OPT_X_TLS_" + [ "DEMAND" , "HARD" ] ) .getAUse ( ) and
132
130
not DataFlow:: exprNode ( any ( False falseExpr ) )
133
131
.( DataFlow:: LocalSourceNode )
134
132
.flowsTo ( setOption .getArg ( 1 ) )
You can’t perform that action at this time.
0 commit comments