]> git.puffer.fish Git - mirror/frr.git/commit
pimd: Fix Null pointer dereferences 10780/head
authorMobashshera Rasool <mrasool@vmware.com>
Fri, 11 Mar 2022 17:57:10 +0000 (09:57 -0800)
committerMobashshera Rasool <mrasool@vmware.com>
Fri, 11 Mar 2022 18:07:01 +0000 (10:07 -0800)
commitea5f4c4c578f93557e58c4df708b3c0e5256836d
tree2a94719a14d50a2263f7f97686909573a4559e43
parent737d8a8dd1e6aa7ea8f815dd1f5eaed2b58aee5b
pimd: Fix Null pointer dereferences

Fixing the below problem:
Dereferencing a pointer that might be "NULL" "group_dnode"
when calling "yang_is_last_list_dnode" in api pim_process_no_rp_cmd

Although there is no NULL pointer dereference since
yang_dnode_exists is called before using the dnode.
So removing the unnecessary yang_dnode_exists api call
and directly get the node and if node does not exists,
return.

Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
pimd/pim_cmd_common.c