mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-08 12:18:42 +00:00
OSPF: Fix 'show ospf lsadb' cmd without proto arg
It crashed when used without protocol argument. Thanks to Alexander for the bugreport.
This commit is contained in:
parent
32a254050d
commit
56d8b1e7f6
@ -537,7 +537,12 @@ CF_CLI(SHOW OSPF STATE ALL, optproto opttext, [<name>], [[Show information about
|
||||
|
||||
CF_CLI_HELP(SHOW OSPF LSADB, ..., [[Show content of OSPF LSA database]]);
|
||||
CF_CLI(SHOW OSPF LSADB, lsadb_args, [global | area <id> | link] [type <num>] [lsid <id>] [self | router <id>] [<proto>], [[Show content of OSPF LSA database]])
|
||||
{ ospf_sh_lsadb($4); };
|
||||
{
|
||||
if (!$4->proto)
|
||||
$4->proto = (struct ospf_proto *) proto_get_named(NULL, &proto_ospf);
|
||||
|
||||
ospf_sh_lsadb($4);
|
||||
};
|
||||
|
||||
lsadb_args:
|
||||
/* empty */ {
|
||||
|
Loading…
Reference in New Issue
Block a user