]> git.ipfire.org Git - thirdparty/iproute2.git/commit
misc: ss.c: fix logical error in main function
authorAnton Moryakov <ant.v.moryakov@gmail.com>
Sat, 19 Jul 2025 16:31:22 +0000 (19:31 +0300)
committerDavid Ahern <dsahern@kernel.org>
Tue, 29 Jul 2025 23:12:08 +0000 (23:12 +0000)
commit27d11a81197c60a409dda84de01cf0aa841530f9
treeb5a1fc11e7d4a3678dbaccbd3f5c5e5b54475cc1
parente041178ba6bc2af0a1148145ee303c9db79fb4cb
misc: ss.c: fix logical error in main function

In the line if (!dump_tcpdiag) { there was a logical error
in checking the descriptor, which the static analyzer complained
about (this action is always false)

fixed by replacing !dump_tcpdiag with !dump_fp

Reported-by: SVACE static analyzer
Signed-off-by: Anton Moryakov <ant.v.moryakov@gmail.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David Ahern <dsahern@kernel.org>
misc/ss.c