mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 16:26:10 +00:00
[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
This commit is contained in:
parent
cac3b5c435
commit
1a8ec2b9a3
@ -4,6 +4,8 @@
|
||||
ensure check for NULL result, make vty messages consistent.
|
||||
(show_ip_ospf_interface) Missing NULL check on ospf_lookup
|
||||
result, fixes Coverity CID #70.
|
||||
(no_ospf_area_filter_list) Check NULL result from
|
||||
ospf_area_lookup_by_area_id, fixes Coverity CID #69
|
||||
|
||||
2006-04-24 Paul Jakma <paul.jakma@sun.com>
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user