diff options
author | Liping Zhang <liping.zhang@spreadtrum.com> | 2016-08-08 16:57:58 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-08-09 11:38:46 +0300 |
commit | b173a28f62cf929324a8a6adcc45adadce311d16 (patch) | |
tree | 727cea1b8b1e70b3dba20845e5ff6e305f2128b9 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 0d35d0815b19216f852f257afe420f7c7d182780 (diff) | |
download | linux-b173a28f62cf929324a8a6adcc45adadce311d16.tar.xz |
netfilter: nf_ct_expect: remove the redundant slash when policy name is empty
The 'name' filed in struct nf_conntrack_expect_policy{} is not a
pointer, so check it is NULL or not will always return true. Even if the
name is empty, slash will always be displayed like follows:
# cat /proc/net/nf_conntrack_expect
297 l3proto = 2 proto=6 src=1.1.1.1 dst=2.2.2.2 sport=1 dport=1025 ftp/
^
Fixes: 3a8fc53a45c4 ("netfilter: nf_ct_helper: allocate 16 bytes for the helper and policy names")
Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions