From f85a41124b70e3f03eebd9d7dca0d4c7c3a71395 Mon Sep 17 00:00:00 2001 From: Yash Ranjan Date: Sun, 18 Apr 2021 04:10:18 -0700 Subject: [PATCH] ospf6d: Fix coredump when "no interface IFNAME area " is called 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 --- ospf6d/ospf6_top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ospf6d/ospf6_top.c b/ospf6d/ospf6_top.c index e2cd5c259d..52e40dc1ad 100644 --- a/ospf6d/ospf6_top.c +++ b/ospf6d/ospf6_top.c @@ -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; } -- 2.39.5