On Wed, 13 Sep 2017 11:20:34 +0200 Phil Sutter <p...@nwl.cc> wrote: > 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. > > Cc: Julien Fortin <jul...@cumulusnetworks.com> > Fixes: d0e720111aad2 ("ip: ipaddress.c: add support for json output") > Signed-off-by: Phil Sutter <p...@nwl.cc> > -- > Changes since v1: > Align json output with that of 'ip -j addr show': > - Interface index label is 'ifindex', not 'index' and it doesn't belong > to 'addr_info' array. > - Create one 'addr_info' array per dumped address, not one for all. > --- > ip/ipaddress.c | 20 ++++++++++++++++++-- > 1 file changed, 18 insertions(+), 2 deletions(-) >
Looks good, applied.