iproute2/misc
Maciej Żenczykowski bbd303d183 iproute2: misc/ss.c - fix run_ssfilter af_packet when protocol == 0
s->local.data is a pointer to a field of a non-NULL struct, and hence
cannot be NULL, thus comparing it to 0 is always false, and thus the
return is always false.

Presumably this was meant to be a check whether s->local.data[0] (which
I believe stores af_packet protocol) is 0, ie. ANY.

Change-Id: Ia232f5b06ce081e3b2fb6338f1a709cd94e03ae5
Fixes:
  ss.c:1018:37: error: comparison of array 's->local.data' equal to a null pointer is always false [-Werror,-Wtautological-pointer-compare]
    return s->lport == 0 && s->local.data == 0;
                            ~~~~~~~~~^~~~    ~
  1 error generated.
2015-06-25 08:52:06 -04:00
..
.gitignore Add ignore files to make using git easier 2006-08-08 12:04:38 -07:00
Makefile ss: Show stats from specified network namespace 2015-02-10 15:11:59 -08:00
arpd.c whitespace cleanup 2014-12-20 15:47:17 -08:00
ifstat.c whitespace cleanup 2014-12-20 15:47:17 -08:00
lnstat.c lnstat: dump to stdout, not stderr 2015-04-20 09:58:46 -07:00
lnstat.h iproute2: various header include fixes for compiling with musl libc 2014-05-28 16:51:39 -07:00
lnstat_util.c Remove trailing whitespace 2006-12-05 10:10:22 -08:00
nstat.c iproute2/nstat: Bug in displaying icmp stats 2014-12-09 20:33:32 -08:00
rtacct.c ip: make local functions static 2013-02-12 11:38:35 -08:00
ss.c iproute2: misc/ss.c - fix run_ssfilter af_packet when protocol == 0 2015-06-25 08:52:06 -04:00
ssfilter.h ss: Allow to specify sport/dport without ':' 2015-03-15 12:11:42 -07:00
ssfilter.y ss: Allow to specify sport/dport without ':' 2015-03-15 12:11:42 -07:00