]> git.ipfire.org Git - thirdparty/iptables.git/commit
xshared: Move NULL pointer check into save_iface()
authorPhil Sutter <phil@nwl.cc>
Fri, 26 Jul 2024 18:53:12 +0000 (20:53 +0200)
committerPhil Sutter <phil@nwl.cc>
Wed, 31 Jul 2024 21:13:55 +0000 (23:13 +0200)
commit8e3e579e753f7a00c099a37ca8601d0da19f14bf
tree1a3c6209d14ed177a59d17601f7a26eba9706fec
parent93e8100c671aada52d8dc5690bfcc1008be6fe86
xshared: Move NULL pointer check into save_iface()

Simplify callers a bit, the function tests other conditions
disqualifying any output already.

While being at it, invert the conditional - it is more readable this
way.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/xshared.c