mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 16:20:08 +00:00
Merge pull request #17364 from acooks-at-bda/fix-redundant-null-ptr-check-CID-1599957
ospf6d: remove redundant null ptr check in ospf6_link_lsa_get_prefix_str() - CID 1599957
This commit is contained in:
commit
23c4341cfc
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user