summaryrefslogtreecommitdiff
path: root/ospfd/ospf_vty.c
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2006-05-11 13:34:08 +0000
committerPaul Jakma <paul.jakma@sun.com>2006-05-11 13:34:08 +0000
commit1a8ec2b9a3557e4f6ad3c8780b72b35be6d86a3e (patch)
tree3f4ecd416c15b72ac1bbd598fc0006b8744030a7 /ospfd/ospf_vty.c
parentcac3b5c435613b51eddf7db4518aa6b730afb031 (diff)
[ospfd] Check NULL result from ospf_area_lookup_by_area_id, CID #69
2006-05-11 Paul Jakma <paul.jakma@sun.com> * ospf_vty.c: (no_ospf_area_filter_list) Check NULL result from ospf_area_lookup_by_area_id, fixes Coverity CID #69
Diffstat (limited to 'ospfd/ospf_vty.c')
-rw-r--r--ospfd/ospf_vty.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c
index c5a69dce..8d6ff31f 100644
--- a/ospfd/ospf_vty.c
+++ b/ospfd/ospf_vty.c
@@ -1896,7 +1896,9 @@ DEFUN (no_ospf_area_filter_list,
VTY_GET_OSPF_AREA_ID (area_id, format, argv[0]);
- area = ospf_area_lookup_by_area_id (ospf, area_id);
+ if ((area = ospf_area_lookup_by_area_id (ospf, area_id)) == NULL)
+ return CMD_SUCCESS;
+
plist = prefix_list_lookup (AFI_IP, argv[1]);
if (strncmp (argv[2], "in", 2) == 0)
{