commit | c4527d7ba36edd214d5e1a700affd5bf89c5cecc | [log] [tgz] |
---|---|---|
author | Phil Sutter <phil@nwl.cc> | Fri Nov 13 18:08:58 2015 +0100 |
committer | Stephen Hemminger <shemming@brocade.com> | Mon Nov 23 15:26:37 2015 -0800 |
tree | c4bb6267ccd7ae3aeeefc05fb2063523dec37a21 | |
parent | 4b3cb96281ebf39fa63734c7879fbf078d1bfa7b [diff] |
ip{,6}tunnel: align do_tunnels_list() a bit In iptunnel, declare loop variables inside the loop as done in ip6tunnel. Fix and simplify goto logic in ip6tunnel: - Failure to read over header lines would have left fp opened. - By returning directly upon fopen() failure, fp can be closed unconditionally in the end. Use the same goto logic in iptunnel, as well. Signed-off-by: Phil Sutter <phil@nwl.cc>