commit | 6d02518fdc37eb12abff67b6f8c741fbd81dce72 | [log] [tgz] |
---|---|---|
author | Phil Sutter <phil@nwl.cc> | Thu Aug 24 11:46:31 2017 +0200 |
committer | Stephen Hemminger <stephen@networkplumber.org> | Thu Aug 24 14:49:43 2017 -0700 |
tree | 4c395a55c1bf82bfdfa2a8e39efcde08c8e7a590 | |
parent | ae4e21c93f81c8d612e4c72df44c2a1dc971a863 [diff] |
ifstat, nstat: Check fdopen() return value Prevent passing NULL FILE pointer to fgets() later. Fix both tools in a single patch since the code changes are basically identical. Signed-off-by: Phil Sutter <phil@nwl.cc>