]> git.proxmox.com Git - mirror_frr.git/commit - lib/zlog_targets.c
lib: fix possible null dereference in zlog
authorQuentin Young <qlyoung@nvidia.com>
Wed, 2 Sep 2020 21:24:54 +0000 (17:24 -0400)
committerQuentin Young <qlyoung@nvidia.com>
Tue, 8 Sep 2020 15:43:40 +0000 (11:43 -0400)
commit589b5e4802920d260ce1804d51ce0b1e80788622
treec7e84f9abf7e1c40dd6a208796734d4408d0e1a8
parent2e5b029865137c1aa383454d3552487a2b998ee4
lib: fix possible null dereference in zlog

In some cases one or both of the zlog targets in use here can be null,
we need to check for that.

Interestingly it appears we don't crash even when this is the case.
Undefined behavior ftw

Signed-off-by: Quentin Young <qlyoung@nvidia.com>
lib/zlog_targets.c