diff options
Diffstat (limited to 'ospfd')
-rw-r--r-- | ospfd/ChangeLog | 4 | ||||
-rw-r--r-- | ospfd/ospf_interface.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/ospfd/ChangeLog b/ospfd/ChangeLog index b1d6bbec..e8eae90e 100644 --- a/ospfd/ChangeLog +++ b/ospfd/ChangeLog @@ -1,5 +1,9 @@ 2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu> + * ospf_interface.c: (ospf_vl_new) Use strnlen to fix call to if_create. + +2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu> + * ospf_vty.c: (show_ip_ospf_interface_sub) Show ifindex and interface flags to help with debugging. * ospf_zebra.c: (ospf_interface_delete) After deleting, set ifp->ifindex diff --git a/ospfd/ospf_interface.c b/ospfd/ospf_interface.c index b76abe58..027dfb9d 100644 --- a/ospfd/ospf_interface.c +++ b/ospfd/ospf_interface.c @@ -880,8 +880,8 @@ ospf_vl_new (struct ospf *ospf, struct ospf_vl_data *vl_data) if (IS_DEBUG_OSPF_EVENT) zlog_debug ("ospf_vl_new(): creating pseudo zebra interface"); - snprintf (ifname, INTERFACE_NAMSIZ + 1, "VLINK%d", vlink_count); - vi = if_create (ifname, INTERFACE_NAMSIZ); + snprintf (ifname, sizeof(ifname), "VLINK%d", vlink_count); + vi = if_create (ifname, strnlen(ifname, sizeof(ifname))); co = connected_new (); co->ifp = vi; listnode_add (vi->connected, co); |