mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 13:21:22 +00:00
Merge pull request #2549 from pacovn/Coverity_1452317_Explicit_null_dereferenced
ldpd: null check (Coverity 1452317)
This commit is contained in:
commit
b2e020256e
@ -89,6 +89,9 @@ struct cmd_node ldp_pseudowire_node =
|
||||
int
|
||||
ldp_get_address(const char *str, int *af, union ldpd_addr *addr)
|
||||
{
|
||||
if (!str || !af || !addr)
|
||||
return (-1);
|
||||
|
||||
memset(addr, 0, sizeof(*addr));
|
||||
|
||||
if (inet_pton(AF_INET, str, &addr->v4) == 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user