Skip to content

Commit dcf8c88

Browse files
committed
Python: correct mistake in example
1 parent 078fbcc commit dcf8c88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/Security/CWE-327/examples/secure_default_protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66

77
# Declaring a minimum version to restrict the protocol
88
context = ssl.create_default_context()
9-
context.minimum_version(ssl.TLSVersion.TLSv1_2)
9+
context.minimum_version = ssl.TLSVersion.TLSv1_2

0 commit comments

Comments
 (0)