summaryrefslogtreecommitdiff
path: root/ospfd/ospf_zebra.c
diff options
context:
space:
mode:
authorajs <ajs>2005-04-02 23:16:41 +0000
committerajs <ajs>2005-04-02 23:16:41 +0000
commit21fefa9843f6e8fc2263e8d85cf0d072b4b6c242 (patch)
tree8e9116d9d3de3776bc3cf5e9c13d0b4b6086c68d /ospfd/ospf_zebra.c
parentbd88bf499a02e3364b06ad269bd7009a0227f91b (diff)
2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* ospf_zebra.c: (zebra_interface_if_lookup) Must use if_lookup_by_name_len.
Diffstat (limited to 'ospfd/ospf_zebra.c')
-rw-r--r--ospfd/ospf_zebra.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c
index 74936df9..27299c59 100644
--- a/ospfd/ospf_zebra.c
+++ b/ospfd/ospf_zebra.c
@@ -148,13 +148,14 @@ ospf_interface_delete (int command, struct zclient *zclient,
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