Commit 56d8b1e7 authored by Ondřej Zajíček's avatar Ondřej Zajíček
Browse files

OSPF: Fix 'show ospf lsadb' cmd without proto arg

It crashed when used without protocol argument.

Thanks to Alexander for the bugreport.
parent 32a25405
Pipeline #52331 passed with stages
in 5 minutes and 28 seconds
......@@ -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);
/* empty */ {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment