Fix false positive and add test.

This commit is contained in:
Taus Brock-Nannestad
2019-03-21 14:10:05 +01:00
parent 9cb35a8ca9
commit 5eb63ae048
3 changed files with 4 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ CallNode unsafe_call(string method_name) {
or
result = ssl_Context_class().getACall() and
not exists(result.getArgByName("protocol")) and
not exists(result.getArg(0)) and
method_name = "ssl.SSLContext"
}