mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 14:34:22 +00:00
Fix incorrect test in previous commit; thanks to Sowmini Varadhan for
catching this.
This commit is contained in:
parent
da26e3b654
commit
cb42c035cc
@ -318,7 +318,6 @@ ifm_read (struct if_msghdr *ifm)
|
|||||||
if (ifp == NULL)
|
if (ifp == NULL)
|
||||||
ifp = if_lookup_by_index (ifm->ifm_index);
|
ifp = if_lookup_by_index (ifm->ifm_index);
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If lookup by index was unsuccessful and we have a name, try
|
* If lookup by index was unsuccessful and we have a name, try
|
||||||
* looking up by name. Interfaces specified in the configuration
|
* 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
|
* ifindex == -1, and such interfaces are found by this search, and
|
||||||
* then their ifindex values can be filled in.
|
* 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
|
* paranoia: sanity check name length. nlen does not include
|
||||||
|
Loading…
Reference in New Issue
Block a user