From: ajs Date: Sat, 2 Apr 2005 23:09:52 +0000 (+0000) Subject: 2005-04-02 Andrew J. Schorr X-Git-Tag: frr-2.0-rc1~3111 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=bd88bf499a02e3364b06ad269bd7009a0227f91b;p=matthieu%2Ffrr.git 2005-04-02 Andrew J. Schorr * isis_zebra.c: (isis_zebra_if_del) Must use if_lookup_by_name_len. --- diff --git a/isisd/ChangeLog b/isisd/ChangeLog index f333901685..3bc94ccfe3 100644 --- a/isisd/ChangeLog +++ b/isisd/ChangeLog @@ -1,3 +1,7 @@ +2005-04-02 Andrew J. Schorr + + * isis_zebra.c: (isis_zebra_if_del) Must use if_lookup_by_name_len. + 2005-04-02 Hasso Tepper * Makefile.am: Variables to handle conditonal compiling of topology diff --git a/isisd/isis_zebra.c b/isisd/isis_zebra.c index 0f8d116237..4690fe3116 100644 --- a/isisd/isis_zebra.c +++ b/isisd/isis_zebra.c @@ -110,13 +110,14 @@ isis_zebra_if_del (int command, struct zclient *zclient, zebra_size_t length) 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)); } static int