diff options
| author | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2023-01-19 10:32:18 -0300 |
|---|---|---|
| committer | Rafael Zalamena <rzalamena@opensourcerouting.org> | 2023-01-19 10:32:18 -0300 |
| commit | ab80e474f26f2e982bc15dd2506ff2eeef129dcc (patch) | |
| tree | b748ef3e047a81da272d210dc9f875a7b3a707f0 /lib/vrf.c | |
| parent | 69306c44e817694f6a8acf530725f84ec59d1a33 (diff) | |
zebra: fix possible null dereference
Don't attempt to dereference `ifp` directly if it might be null: there
is a check right before this usage: `ifp ? ifp->info : NULL`.
In this context it should be safe to assume `ifp` is not NULL because
the only caller of this function checks that for this `ifindex`. For
consistency we'll check for null anyway in case this ever changes (and
with this the coverity scan warning gets silenced).
Found by Coverity Scan (CID 1519776)
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'lib/vrf.c')
0 files changed, 0 insertions, 0 deletions
