]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/ipaddress.c
ip link: don't stop batch processing
authorMatteo Croce <mcroce@redhat.com>
Fri, 3 Aug 2018 17:49:33 +0000 (19:49 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 8 Aug 2018 16:24:47 +0000 (09:24 -0700)
commitd56c7dde9dfb34794e983e7caf47a7ad3cf89579
treeea628e2094f4951c4976f4f243c3313d79ae6b94
parentd66fdfda71e4a30c1ca0ddb7b1a048bef30fe79e
ip link: don't stop batch processing

When 'ip link show dev DEVICE' is processed in a batch mode, ip exits
and stop processing further commands.
This because ipaddr_list_flush_or_save() calls exit() to avoid printing
the link information twice.
Replace the exit with a classic goto out instruction.

Signed-off-by: Matteo Croce <mcroce@redhat.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/ipaddress.c