diff --git a/cpp/ql/src/semmle/code/cpp/models/implementations/Inet.qll b/cpp/ql/src/semmle/code/cpp/models/implementations/Inet.qll index f9b35b8907bd..8e36ef9aa4a3 100644 --- a/cpp/ql/src/semmle/code/cpp/models/implementations/Inet.qll +++ b/cpp/ql/src/semmle/code/cpp/models/implementations/Inet.qll @@ -47,7 +47,7 @@ class InetNetwork extends TaintFunction, ArrayFunction { InetNetwork() { hasGlobalName("inet_network") } override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) { - input.isParameterDeref(1) and + input.isParameterDeref(0) and output.isReturnValue() }