mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 23:21:10 +00:00
staticd: Fix null pointer access (coverity 1472311)
Aded a check to ensure that if_is_vrf() is not called on a NULL if pointer. Incidentally this was causing PR #2805 to fail. Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
This commit is contained in:
parent
359b4722b3
commit
bacd8eea47
@ -119,7 +119,7 @@ static int interface_state_up(int command, struct zclient *zclient,
|
|||||||
|
|
||||||
ifp = zebra_interface_if_lookup(zclient->ibuf);
|
ifp = zebra_interface_if_lookup(zclient->ibuf);
|
||||||
|
|
||||||
if (if_is_vrf(ifp)) {
|
if (ifp && if_is_vrf(ifp)) {
|
||||||
struct static_vrf *svrf = static_vrf_lookup_by_id(vrf_id);
|
struct static_vrf *svrf = static_vrf_lookup_by_id(vrf_id);
|
||||||
|
|
||||||
static_fixup_vrf_ids(svrf);
|
static_fixup_vrf_ids(svrf);
|
||||||
|
Loading…
Reference in New Issue
Block a user