mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-15 02:00:24 +00:00
ospf6d: Fix for "show ipv6 ospf6 database link"
Some prefixes were not shown in the link database show command, due to issues with pointer calculation. Signed-off-by: Yash Ranjan <ranjany@vmware.com>
This commit is contained in:
parent
8044f7aa55
commit
08d8fa4587
@ -609,9 +609,8 @@ static char *ospf6_link_lsa_get_prefix_str(struct ospf6_lsa *lsa, char *buf,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cnt < pos) {
|
if (cnt < (pos - 1)) {
|
||||||
current =
|
current += OSPF6_PREFIX_SIZE(prefix);
|
||||||
start + pos * OSPF6_PREFIX_SIZE(prefix);
|
|
||||||
cnt++;
|
cnt++;
|
||||||
} else {
|
} else {
|
||||||
memset(&in6, 0, sizeof(in6));
|
memset(&in6, 0, sizeof(in6));
|
||||||
|
Loading…
Reference in New Issue
Block a user