[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] route: fix output of "route -n -A inet6"
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2019-10-08 11:53:36
Message-ID: CAK1hOcO1fGZP_72HYbkaMK==ho2kFifgWdbddjSpcdRmzWWRbw () mail ! gmail ! com
[Download RAW message or body]

Applied, thanks

On Tue, Oct 8, 2019 at 12:06 PM Tomas Paukrt <tomaspaukrt@email.cz> wrote:
> 
> The output of the command "route -n -A inet6" may be corrupted due to partially \
> initialized structure snaddr6 in the function INET6_displayroutes. 
> Signed-off-by: Tomas Paukrt <tomaspaukrt@email.cz>
> ---
> networking/route.c |    1 +
> 1 file changed, 1 insertion(+)
> 
> diff --git a/networking/route.c b/networking/route.c
> index a5d8d7c..e785b1d 100644
> --- a/networking/route.c
> +++ b/networking/route.c
> @@ -628,6 +628,7 @@ static void INET6_displayroutes(void)
> 
> r = 0;
> while (1) {
> +                       memset(&snaddr6, 0, sizeof(snaddr6));
> inet_pton(AF_INET6, addr6x + r,
> (struct sockaddr *) &snaddr6.sin6_addr);
> snaddr6.sin6_family = AF_INET6;
> --
> 1.7.9.5
> 
> _______________________________________________
> busybox mailing list
> busybox@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic