Bug 12161

Summary: Corrupted output of "route -A inet6"
Product: Busybox Reporter: Tomas Paukrt <tomaspaukrt>
Component: NetworkingAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.29.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: patch

Description Tomas Paukrt 2019-08-31 09:07:11 UTC
Created attachment 8236 [details]
patch

The output of the following command is corrupted due to partially initialized structure snaddr6 in the function INET6_displayroutes.

# route -n -A inet6
Destination                                 Next Hop                                Flags Metric Ref    Use Iface
fd00:a40::%3728062048/56                    ::%3728062048                           U     256    1        0 eth0
fd00:a41::1%3728062048/128                  ::%3728062048                           U     1024   2        1 eth1
fd00:a41::%3728062048/56                    ::%3728062048                           U     256    1        0 eth1

In the attachment is a simple patch that fixes this bug.