diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2024-11-06 08:10:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-06 08:10:00 +0200 |
| commit | 1df6c57e697193f0a619fbad39b2c8f1fbd46724 (patch) | |
| tree | 54f2c80d7899f27a5cb7ef8b42f78ca8ddfdc469 /ospf6d/ospf6_intra.c | |
| parent | 23c4341cfcd4ed91de5785d40296899d51090d01 (diff) | |
| parent | 24d8d95dd199bf8f8df0bed9c2ebb46de7f7cf03 (diff) | |
Merge pull request #17363 from acooks-at-bda/fix-redundant-null-ptr-check-CID-1599962
ospf6d: remove redundant null ptr check
Diffstat (limited to 'ospf6d/ospf6_intra.c')
| -rw-r--r-- | ospf6d/ospf6_intra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ospf6d/ospf6_intra.c b/ospf6d/ospf6_intra.c index 46b7fbd33a..4765c29e1e 100644 --- a/ospf6d/ospf6_intra.c +++ b/ospf6d/ospf6_intra.c @@ -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), |
