Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit a10db25

Browse files
committed
Remove redundant constraint
1 parent 779901c commit a10db25

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

ql/src/experimental/CWE-327/InsecureTLS.ql

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ class TlsVersionFlowConfig extends TaintTracking::Configuration {
7878
*/
7979
predicate isSink(DataFlow::Node sink, Field fld, DataFlow::Node base, Write fieldWrite) {
8080
fld.hasQualifiedName("crypto/tls", "Config", ["MinVersion", "MaxVersion"]) and
81-
fieldWrite = fld.getAWrite() and
8281
fieldWrite.writesField(base, fld, sink)
8382
}
8483

@@ -207,7 +206,6 @@ class TlsInsecureCipherSuitesFlowConfig extends TaintTracking::Configuration {
207206
*/
208207
predicate isSink(DataFlow::Node sink, Field fld, DataFlow::Node base, Write fieldWrite) {
209208
fld.hasQualifiedName("crypto/tls", "Config", "CipherSuites") and
210-
fieldWrite = fld.getAWrite() and
211209
fieldWrite.writesField(base, fld, sink)
212210
}
213211

0 commit comments

Comments
 (0)