diff options
| author | Louis Scalbert <louis.scalbert@6wind.com> | 2024-01-23 11:52:59 +0100 |
|---|---|---|
| committer | Louis Scalbert <louis.scalbert@6wind.com> | 2024-01-23 13:12:59 +0100 |
| commit | b28fd4e527e28bea98bd1e396f5c617051561d35 (patch) | |
| tree | 0b9ad515f443bc588c4f46012d4ce0fe9371879d /ospfclient/ospf_apiclient.c | |
| parent | 39c8c97d41616c6fb0abf92c48c24b8efd2a7ffe (diff) | |
bgpd: fix res validity in rpki_create_socket
Fix coverity scanner issue 1575912 where res pointer is supposed to
valid in:
> socket = vrf_socket(res->ai_family, ...)
but is checked for validity a few lines later.
Note that vrf_getaddrinfo returns an error code if getaddrinfo() fails
to allocate res and in this case, rpki_create_socket() returns.
Fixes: a951752 ("bgpd: create cache server socket in vrf")
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'ospfclient/ospf_apiclient.c')
0 files changed, 0 insertions, 0 deletions
