Skip to content

Commit

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

ospf6d: remove redundant null ptr check
  • Loading branch information
ton31337 authored Nov 6, 2024
2 parents 23c4341 + 24d8d95 commit 1df6c57
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 @@ -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),
Expand Down

0 comments on commit 1df6c57

Please sign in to comment.