]> git.puffer.fish Git - mirror/frr.git/commit
bfdd: fix coverity warnings 10026/head
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 10 Nov 2021 13:36:15 +0000 (16:36 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 10 Nov 2021 13:36:15 +0000 (16:36 +0300)
commitc3634e4411e51984af7ec2f53bc871d9e45ee448
tree828d375f9d7881fa0a0be17946ce480e048a30bd
parentb6380d60c78639941192c2194269fc1c21b6db81
bfdd: fix coverity warnings

show/clear DEFUNs always require either peer label or IP address to be
specified, so if `label` is NULL then `peer_str` is definitely not NULL.
But Coverity doesn't know about that, so it complains about possible
NULL dereference of `peer_str`. This commit should make Coverity happy.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
bfdd/bfdd_vty.c