summaryrefslogtreecommitdiff
path: root/ospfd/ospf_ri.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd/ospf_ri.c')
-rw-r--r--ospfd/ospf_ri.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ospfd/ospf_ri.c b/ospfd/ospf_ri.c
index 4723f4a919..bd2506d2d4 100644
--- a/ospfd/ospf_ri.c
+++ b/ospfd/ospf_ri.c
@@ -1192,7 +1192,11 @@ DEFUN (router_info,
/* Check and get Area value if present */
if (area)
{
- inet_aton (area, &OspfRI.area_id);
+ if (!inet_aton (area, &OspfRI.area_id))
+ {
+ vty_out (vty, "Please specifya valid Area ID%s", VTY_NEWLINE);
+ return CMD_WARNING;
+ }
scope = OSPF_OPAQUE_AREA_LSA;
}
else