Skip to content

Commit 178cb6c

Browse files
committed
Python: Bit too eager with the modernisation...
Lift type restrictions to recover results.
1 parent 7c0b064 commit 178cb6c

File tree

1 file changed

+3
-3
lines changed
  • python/ql/src/Security/CWE-327

1 file changed

+3
-3
lines changed

python/ql/src/Security/CWE-327/Ssl.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class WrapSocketCall extends ConnectionCreation, DataFlow::CallCfgNode {
4545
}
4646
}
4747

48-
class OptionsAugOr extends ProtocolRestriction, DataFlow::CallCfgNode {
48+
class OptionsAugOr extends ProtocolRestriction, DataFlow::CfgNode {
4949
ProtocolVersion restriction;
5050

5151
OptionsAugOr() {
@@ -68,7 +68,7 @@ class OptionsAugOr extends ProtocolRestriction, DataFlow::CallCfgNode {
6868
override ProtocolVersion getRestriction() { result = restriction }
6969
}
7070

71-
class OptionsAugAndNot extends ProtocolUnrestriction, DataFlow::CallCfgNode {
71+
class OptionsAugAndNot extends ProtocolUnrestriction, DataFlow::CfgNode {
7272
ProtocolVersion restriction;
7373

7474
OptionsAugAndNot() {
@@ -126,7 +126,7 @@ predicate impliesBitSet(BinaryExpr whole, Expr part, boolean partHasBitSet, bool
126126
)
127127
}
128128

129-
class ContextSetVersion extends ProtocolRestriction, ProtocolUnrestriction, DataFlow::CallCfgNode {
129+
class ContextSetVersion extends ProtocolRestriction, ProtocolUnrestriction, DataFlow::CfgNode {
130130
ProtocolVersion restriction;
131131

132132
ContextSetVersion() {

0 commit comments

Comments
 (0)