From 803da339a189c973072bf197139856afb5ca4104 Mon Sep 17 00:00:00 2001 From: Geoffrey White <40627776+geoffw0@users.noreply.github.com> Date: Fri, 17 Jan 2020 17:44:29 +0000 Subject: [PATCH] CPP: Fix a mistake in Inet.qll. --- cpp/ql/src/semmle/code/cpp/models/implementations/Inet.qll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }