mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 03:40:48 +00:00
2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* ospf_zebra.c: (zebra_interface_if_lookup) Must use if_lookup_by_name_len.
This commit is contained in:
parent
bd88bf499a
commit
21fefa9843
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
|
||||||
|
|
||||||
* ospf_interface.c: (ospf_vl_new) Use strnlen to fix call to if_create.
|
* ospf_interface.c: (ospf_vl_new) Use strnlen to fix call to if_create.
|
||||||
|
@ -148,13 +148,14 @@ ospf_interface_delete (int command, struct zclient *zclient,
|
|||||||
static struct interface *
|
static struct interface *
|
||||||
zebra_interface_if_lookup (struct stream *s)
|
zebra_interface_if_lookup (struct stream *s)
|
||||||
{
|
{
|
||||||
u_char ifname_tmp[INTERFACE_NAMSIZ];
|
char ifname_tmp[INTERFACE_NAMSIZ];
|
||||||
|
|
||||||
/* Read interface name. */
|
/* Read interface name. */
|
||||||
stream_get (ifname_tmp, s, INTERFACE_NAMSIZ);
|
stream_get (ifname_tmp, s, INTERFACE_NAMSIZ);
|
||||||
|
|
||||||
/* And look it up. */
|
/* 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
|
int
|
||||||
|
Loading…
Reference in New Issue
Block a user