mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-11 22:02:23 +00:00
Merge pull request #9733 from opensourcerouting/grpc-fix-missing
lib: fix gRPC crash on missing YANG node
This commit is contained in:
commit
a3232e63e6
@ -344,6 +344,10 @@ static struct lyd_node *get_dnode_config(const std::string &path)
|
||||
{
|
||||
struct lyd_node *dnode;
|
||||
|
||||
if (!yang_dnode_exists(running_config->dnode,
|
||||
path.empty() ? NULL : path.c_str()))
|
||||
return NULL;
|
||||
|
||||
dnode = yang_dnode_get(running_config->dnode,
|
||||
path.empty() ? NULL : path.c_str());
|
||||
if (dnode)
|
||||
|
Loading…
Reference in New Issue
Block a user