diff options
author | gdt <gdt> | 2004-01-05 17:55:46 +0000 |
---|---|---|
committer | gdt <gdt> | 2004-01-05 17:55:46 +0000 |
commit | b60f7f1e9d0ffc4b0c4ef87bec53440f9ba9387c (patch) | |
tree | e4961d2685c53ac6c99ecefa156f7960d54a267a | |
parent | 7ad12298358feb1b77fa93cddb34f68538d0a6a6 (diff) | |
download | quagga-b60f7f1e9d0ffc4b0c4ef87bec53440f9ba9387c.tar.bz2 quagga-b60f7f1e9d0ffc4b0c4ef87bec53440f9ba9387c.tar.xz |
Fix incorrect test in previous commit; thanks to Sowmini Varadhan for
catching this.
-rw-r--r-- | zebra/kernel_socket.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c index 97953ac1..e2e25d49 100644 --- a/zebra/kernel_socket.c +++ b/zebra/kernel_socket.c @@ -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 |