mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-28 15:33:34 +00:00
pbrd: remove potential null dereference
Coverity #1467832 Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
d64169679f
commit
68a63f60ae
@ -209,6 +209,13 @@ void pbr_nhgroup_add_cb(const char *name)
|
||||
struct nexthop_group_cmd *nhgc;
|
||||
|
||||
nhgc = nhgc_find(name);
|
||||
|
||||
if (!nhgc) {
|
||||
DEBUGD(&pbr_dbg_nht, "%s: Could not find nhgc with name: %s\n",
|
||||
__PRETTY_FUNCTION__, name);
|
||||
return;
|
||||
}
|
||||
|
||||
pnhgc = pbr_nht_add_group(name);
|
||||
|
||||
DEBUGD(&pbr_dbg_nht, "%s: Added nexthop-group %s", __PRETTY_FUNCTION__,
|
||||
|
Loading…
Reference in New Issue
Block a user