diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2023-09-06 08:39:02 -0400 |
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2023-09-07 07:11:17 +0000 |
| commit | 7f5385156a37526100d4a7d7ba213719ba0f4a07 (patch) | |
| tree | 553ae05c8c374113eedb784328256e06197e3d4f /pathd/path_errors.c | |
| parent | 9c36b56d4cf72f665785a7761d7c2ece3358ee59 (diff) | |
zebra: Prevent Null pointer deref
If the kernel sends us bad data then the kind_str
will be NULL and a later strcmp operation will
cause a crash.
As a note: If the kernel is not sending us properly
formated netlink messages then we got bigger problems
than zebra crashing. But at least let's prevent zebra
from crashing.
Reported-by: Iggy Frankovic <iggyfran@amazon.com>
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit 2b9373c114dfc0154f6291474789f44256358518)
Diffstat (limited to 'pathd/path_errors.c')
0 files changed, 0 insertions, 0 deletions
