Skip to content

Commit d3a1856

Browse files
authored
Merge pull request #2646 from geoffw0/modelinet
CPP: Fix a mistake in Inet.qll.
2 parents 3632d51 + 803da33 commit d3a1856

File tree

1 file changed

+1
-1
lines changed
  • cpp/ql/src/semmle/code/cpp/models/implementations

1 file changed

+1
-1
lines changed

cpp/ql/src/semmle/code/cpp/models/implementations/Inet.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class InetNetwork extends TaintFunction, ArrayFunction {
4747
InetNetwork() { hasGlobalName("inet_network") }
4848

4949
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
50-
input.isParameterDeref(1) and
50+
input.isParameterDeref(0) and
5151
output.isReturnValue()
5252
}
5353

0 commit comments

Comments
 (0)