Skip to content

Commit

Permalink
Merge pull request FRRouting#17364 from acooks-at-bda/fix-redundant-n…
Browse files Browse the repository at this point in the history
…ull-ptr-check-CID-1599957

ospf6d: remove redundant null ptr check in ospf6_link_lsa_get_prefix_str() - CID 1599957
  • Loading branch information
ton31337 authored Nov 6, 2024
2 parents 905fc5c + 8c5a0bb commit 23c4341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ospf6d/ospf6_intra.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 23c4341

Please sign in to comment.