]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Annotate false positive reverse negative (CID #720487) (#4641)
authorJames Jones <jejones3141@gmail.com>
Wed, 3 Aug 2022 13:43:44 +0000 (08:43 -0500)
committerGitHub <noreply@github.com>
Wed, 3 Aug 2022 13:43:44 +0000 (09:43 -0400)
coverity flags the check whether there are commands to run
with the comment "You might be using variable num_commands
before verifying that it is >=0."

src/listen/control/radmin.c

index fcb349cc1759477147c50eb858e9186a45133893..1e5af744d95c6fe0b7dcd4448e8d60a307a6a3b2 100644 (file)
@@ -1116,6 +1116,7 @@ int main(int argc, char **argv)
        /*
         *      Run commands from the command-line.
         */
+       /* coverity[check_after_sink] */
        if (num_commands >= 0) {
                int i;