]> git.puffer.fish Git - mirror/frr.git/commitdiff
Fix incorrect test in previous commit; thanks to Sowmini Varadhan for
authorgdt <gdt>
Mon, 5 Jan 2004 17:55:46 +0000 (17:55 +0000)
committergdt <gdt>
Mon, 5 Jan 2004 17:55:46 +0000 (17:55 +0000)
catching this.

zebra/kernel_socket.c

index 97953ac19428f065bf75e9e2237608377e5b1fc6..e2e25d49e4ff2ddc0dfcfff601dae8e490cf76cd 100644 (file)
@@ -318,7 +318,6 @@ ifm_read (struct if_msghdr *ifm)
   if (ifp == NULL)
     ifp = if_lookup_by_index (ifm->ifm_index);
 
-
   /* 
    * If lookup by index was unsuccessful and we have a name, try
    * looking up by name.  Interfaces specified in the configuration
@@ -326,7 +325,7 @@ ifm_read (struct if_msghdr *ifm)
    * ifindex == -1, and such interfaces are found by this search, and
    * then their ifindex values can be filled in.
    */
-  if (ifp != NULL && sdl != NULL)
+  if (ifp == NULL && sdl != NULL)
     {
       /*
        * paranoia: sanity check name length.  nlen does not include