Commit cee37d90 authored by Matthieu Boutier's avatar Matthieu Boutier

get_old_if was testing the same interface.

parent 787daa96
...@@ -631,7 +631,7 @@ get_old_if(const char *ifname) ...@@ -631,7 +631,7 @@ get_old_if(const char *ifname)
{ {
int i; int i;
for(i = 0; i < num_old_if; i++) for(i = 0; i < num_old_if; i++)
if(strcmp(old_if->ifname, ifname) == 0) if(strcmp(old_if[i].ifname, ifname) == 0)
return i; return i;
if(num_old_if >= MAX_INTERFACES) if(num_old_if >= MAX_INTERFACES)
return -1; return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment