]> git.puffer.fish Git - mirror/frr.git/commit
lib: Fix possible usage of uninited data
authorDonald Sharp <sharpd@nvidia.com>
Thu, 17 Feb 2022 19:07:57 +0000 (14:07 -0500)
committermergify-bot <noreply@mergify.com>
Wed, 23 Feb 2022 17:34:57 +0000 (17:34 +0000)
commitcecb76bd3cdcb5ab6adffac17fe8ef90fafba653
treefa2ff6ec1c69e1c29f5856372a69165e763389ed
parentfa2713e7b581aec24eeac0d74fb78a24fa1eaaf2
lib: Fix possible usage of uninited data

assert when if_lookup_address is passed with
a family that is not AF_INET or AF_INET6 as
that we are dead in the water and this is a
dev escape

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
(cherry picked from commit 4d7aae38ab5f88421dea48a6f6541f86ce4cd954)
lib/if.c