summaryrefslogtreecommitdiff
path: root/lib/prefix.c
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2023-09-21 06:31:58 -0400
committerGitHub <noreply@github.com>2023-09-21 06:31:58 -0400
commitcd3bd19314ac86c25a7831f995947fae67c6706d (patch)
treec5b67cd6b3b62a8bea736777a026024b3805e561 /lib/prefix.c
parentd81e492368b8b78ab1f4fbaba3e72d93c3958608 (diff)
parent448d690a354c3ea481aba6254a285937d843cf81 (diff)
Merge pull request #14454 from opensourcerouting/coverity-20230920
lib: fix a bunch of coverity nits
Diffstat (limited to 'lib/prefix.c')
-rw-r--r--lib/prefix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/prefix.c b/lib/prefix.c
index 0b8664411d..f342c4c1db 100644
--- a/lib/prefix.c
+++ b/lib/prefix.c
@@ -261,7 +261,7 @@ int evpn_type5_prefix_match(const struct prefix *n, const struct prefix *p)
return 0;
prefixlen = evp->prefix.prefix_addr.ip_prefix_length;
- np = &evp->prefix.prefix_addr.ip.ip.addr;
+ np = evp->prefix.prefix_addr.ip.ip.addrbytes;
/* If n's prefix is longer than p's one return 0. */
if (prefixlen > p->prefixlen)