projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
427c12c
)
route: fix output of "route -n -A inet6"
author
Tomas Paukrt
<tomaspaukrt@email.cz>
Tue, 8 Oct 2019 09:51:48 +0000
(11:51 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 8 Oct 2019 11:52:12 +0000
(13:52 +0200)
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>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/route.c
patch
|
blob
|
history
diff --git
a/networking/route.c
b/networking/route.c
index a5d8d7cb9bea7a09e0d426b0881fff1df9140f13..e785b1da6fca64a6895ff39d1c6a17b4e185fa33 100644
(file)
--- 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;