]> git.proxmox.com Git - mirror_frr.git/commitdiff
ospf6d: Fix coredump when "no interface IFNAME area <A.B.C.D>" is called
authorYash Ranjan <ranjany@vmware.com>
Sun, 18 Apr 2021 11:10:18 +0000 (04:10 -0700)
committerYash Ranjan <ranjany@vmware.com>
Sun, 18 Apr 2021 11:22:56 +0000 (04:22 -0700)
When oi->area == NULL, it tries to print the
interface's area name, but no area is present.
Print the area name from the command argument instead.

Signed-off-by: Yash Ranjan <ranjany@vmware.com>
ospf6d/ospf6_top.c

index e2cd5c259de9cf04305a9fa3aa8796a9ee3fa4ef..52e40dc1ad0fbd50cae433f8b93029e8949a583d 100644 (file)
@@ -814,7 +814,7 @@ DEFUN (no_ospf6_interface_area,
        /* Verify Area */
        if (oi->area == NULL) {
                vty_out(vty, "%s not attached to area %s\n",
-                       oi->interface->name, oi->area->name);
+                       oi->interface->name, argv[idx_ipv4]->arg);
                return CMD_SUCCESS;
        }