Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7f7320a

Browse files
yoffRasmusWL
andauthored
Update python/ql/src/Security/CWE-327/InsecureDefaultProtocol.ql
Co-authored-by: Rasmus Wriedt Larsen <[email protected]>
1 parent a067adb commit 7f7320a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/ql/src/Security/CWE-327/InsecureDefaultProtocol.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ CallNode unsafe_call(string method_name) {
2323
not exists(result.getArg(0)) and
2424
method_name = "ssl.SSLContext" and
2525
// in version 3.4, flags were introduced to modify cotexts created with default values
26-
(major_version() < 3 or minor_version() < 4)
26+
(major_version() = 2 or major_version() = 3 and minor_version() < 4)
2727
}
2828

2929
from CallNode call, string method_name

0 commit comments

Comments
 (0)