mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 10:04:18 +00:00
Merge pull request #10488 from FRRouting/mergify/bp/dev/8.2/pr-10485
bgpd: strncmp -> strcmp in community hash foo (backport #10485)
This commit is contained in:
commit
36d9744b01
@ -40,9 +40,7 @@ static bool bgp_ca_community_hash_cmp(const void *p1, const void *p2)
|
||||
const struct community_alias *ca1 = p1;
|
||||
const struct community_alias *ca2 = p2;
|
||||
|
||||
return (strncmp(ca1->community, ca2->community,
|
||||
sizeof(struct community_alias))
|
||||
== 0);
|
||||
return (strcmp(ca1->community, ca2->community) == 0);
|
||||
}
|
||||
|
||||
static unsigned int bgp_ca_alias_hash_key(const void *p)
|
||||
@ -57,8 +55,7 @@ static bool bgp_ca_alias_hash_cmp(const void *p1, const void *p2)
|
||||
const struct community_alias *ca1 = p1;
|
||||
const struct community_alias *ca2 = p2;
|
||||
|
||||
return (strncmp(ca1->alias, ca2->alias, sizeof(struct community_alias))
|
||||
== 0);
|
||||
return (strcmp(ca1->alias, ca2->alias) == 0);
|
||||
}
|
||||
|
||||
static void *bgp_community_alias_alloc(void *p)
|
||||
|
Loading…
Reference in New Issue
Block a user