]> git.puffer.fish Git - matthieu/frr.git/commitdiff
2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
authorajs <ajs>
Sat, 2 Apr 2005 23:09:52 +0000 (23:09 +0000)
committerajs <ajs>
Sat, 2 Apr 2005 23:09:52 +0000 (23:09 +0000)
* isis_zebra.c: (isis_zebra_if_del) Must use if_lookup_by_name_len.

isisd/ChangeLog
isisd/isis_zebra.c

index f3339016854faa51862f0ffb5db770921538c641..3bc94ccfe3c3c11e7fb3c17514d63fd93250f77c 100644 (file)
@@ -1,3 +1,7 @@
+2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
+
+       * isis_zebra.c: (isis_zebra_if_del) Must use if_lookup_by_name_len.
+
 2005-04-02 Hasso Tepper <hasso at quagga.net>
 
        * Makefile.am: Variables to handle conditonal compiling of topology
index 0f8d1162371b2818c79dcb11e47a7cb5f06cd275..4690fe3116ebf0399c3bb549b4f7e4039b69dd42 100644 (file)
@@ -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