* ospf_zebra.c: (zebra_interface_if_lookup) Must use
if_lookup_by_name_len.
+2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
+ * ospf_zebra.c: (zebra_interface_if_lookup) Must use
+ if_lookup_by_name_len.
+
2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* ospf_interface.c: (ospf_vl_new) Use strnlen to fix call to if_create.
static struct interface *
zebra_interface_if_lookup (struct stream *s)
{
- u_char ifname_tmp[INTERFACE_NAMSIZ];
+ char ifname_tmp[INTERFACE_NAMSIZ];
/* Read interface name. */
stream_get (ifname_tmp, s, INTERFACE_NAMSIZ);
/* And look it up. */
- return if_lookup_by_name ((char *) ifname_tmp);
+ return if_lookup_by_name_len(ifname_tmp,
+ strnlen(ifname_tmp, INTERFACE_NAMSIZ));
}
int