diff options
author | Sergey Popovich <[email protected]> | 2015-05-02 19:28:07 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <[email protected]> | 2015-05-13 13:25:46 +0200 |
commit | 8e55d2e5903e4698a964163e0cf81261eee086ee (patch) | |
tree | 02be382c4018eba0f31afcb6101d75405430382e /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 43ef29c91a247e9e0cc4d4538c1d1f5b8ca728c1 (diff) |
netfilter: ipset: Return ipset error instead of bool
Statement ret = func1() || func2() returns 0 when both func1()
and func2() return 0, or 1 if func1() or func2() returns non-zero.
However in our case func1() and func2() returns error code on
failure, so it seems good to propagate such error codes, rather
than returning 1 in case of failure.
Signed-off-by: Sergey Popovich <[email protected]>
Signed-off-by: Jozsef Kadlecsik <[email protected]>
Signed-off-by: Pablo Neira Ayuso <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions