]> git.proxmox.com Git - mirror_iproute2.git/commit
ipaddress: Fix segfault in 'addr showdump'
authorPhil Sutter <phil@nwl.cc>
Tue, 12 Sep 2017 14:58:12 +0000 (16:58 +0200)
committerStephen Hemminger <sthemmin@microsoft.com>
Wed, 13 Sep 2017 04:27:36 +0000 (21:27 -0700)
commit1cfcf62c68267b634bb5b346c9842bdb97c5d0ef
tree8b47aca605804d23eff188ff77ef41bcd057c3f2
parentb2947f8b2c854ea1c552e67a7368fc77d4e876ec
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>
ip/ipaddress.c