diff options
| author | Mobashshera Rasool <mrasool@vmware.com> | 2022-03-11 09:57:10 -0800 |
|---|---|---|
| committer | Mobashshera Rasool <mrasool@vmware.com> | 2022-03-11 10:07:01 -0800 |
| commit | ea5f4c4c578f93557e58c4df708b3c0e5256836d (patch) | |
| tree | 2a94719a14d50a2263f7f97686909573a4559e43 /lib/json.c | |
| parent | 737d8a8dd1e6aa7ea8f815dd1f5eaed2b58aee5b (diff) | |
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>
Diffstat (limited to 'lib/json.c')
0 files changed, 0 insertions, 0 deletions
