Fix incorrect test in previous commit; thanks to Sowmini Varadhan for
catching this.
diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c
index 97953ac..e2e25d4 100644
--- a/zebra/kernel_socket.c
+++ b/zebra/kernel_socket.c
@@ -318,7 +318,6 @@
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 @@
* 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