summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_intra.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospf6d/ospf6_intra.c')
-rw-r--r--ospf6d/ospf6_intra.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ospf6d/ospf6_intra.c b/ospf6d/ospf6_intra.c
index 324cd7abe8..4765c29e1e 100644
--- a/ospf6d/ospf6_intra.c
+++ b/ospf6d/ospf6_intra.c
@@ -578,7 +578,7 @@ static char *ospf6_link_lsa_get_prefix_str(struct ospf6_lsa *lsa, char *buf,
struct ospf6_prefix *prefix = nth_prefix(lsa->header, pos);
struct in6_addr in6 = { 0 };
- if (!lsa || !prefix || !buf || buflen < (1 + INET6_ADDRSTRLEN))
+ if (!prefix || !buf || buflen < (1 + INET6_ADDRSTRLEN))
return NULL;
/* position zero is used for the lladdr in the body of the LSA */
@@ -772,7 +772,7 @@ static char *ospf6_intra_prefix_lsa_get_prefix_str(struct ospf6_lsa *lsa,
char tbuf[16];
/* ensure buflen >= INET6_ADDRSTRLEN + '/128\0' */
- if (!lsa || !prefix || !buf || buflen < (5 + INET6_ADDRSTRLEN))
+ if (!prefix || !buf || buflen < (5 + INET6_ADDRSTRLEN))
return NULL;
memcpy(&in6, OSPF6_PREFIX_BODY(prefix),