Skip to content

Commit adfb3c3

Browse files
committed
C++: Simplify cpp/boost/tls-settings-misconfiguration
1 parent a770bdd commit adfb3c3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cpp/ql/src/Likely Bugs/Protocols/TlsSettingsMisconfiguration.ql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,9 @@ predicate isOptionSet(ConstructorCall cc, int flag, FunctionCall fcSetOptions) {
4343
ExistsAnyFlow::flow(source, sink) and
4444
f.getACallToThisFunction() = fcSetOptions and
4545
contextSetOptions = fcSetOptions.getQualifier() and
46-
forall(Expr optionArgument, Expr optionArgumentSource |
46+
forex(Expr optionArgument |
4747
optionArgument = fcSetOptions.getArgument(0) and
48-
BoostorgAsio::SslOptionFlow::flow(DataFlow::exprNode(optionArgumentSource),
49-
DataFlow::exprNode(optionArgument))
48+
BoostorgAsio::SslOptionFlow::flowTo(DataFlow::exprNode(optionArgument))
5049
|
5150
optionArgument.getValue().toInt().bitShiftRight(16).bitAnd(flag) = flag
5251
)

0 commit comments

Comments
 (0)