commit | 1cfcf62c68267b634bb5b346c9842bdb97c5d0ef | [log] [tgz] |
---|---|---|
author | Phil Sutter <phil@nwl.cc> | Tue Sep 12 16:58:12 2017 +0200 |
committer | Stephen Hemminger <sthemmin@microsoft.com> | Tue Sep 12 21:27:36 2017 -0700 |
tree | 8b47aca605804d23eff188ff77ef41bcd057c3f2 | |
parent | b2947f8b2c854ea1c552e67a7368fc77d4e876ec [diff] |
ipaddress: Fix segfault in 'addr showdump' Obviously, 'addr showdump' feature wasn't adjusted to json output support. As a consequence, calls to print_string() in print_addrinfo() tried to dereference a NULL FILE pointer. Fixes: d0e720111aad2 ("ip: ipaddress.c: add support for json output") Signed-off-by: Phil Sutter <phil@nwl.cc>