Fix, using wrong loop variable in interface detection

This commit is contained in:
Jeremy Lakeman 2013-08-29 17:22:59 +09:30
parent f06c203488
commit 842915f70c

View File

@ -1036,7 +1036,7 @@ void overlay_interface_discover(struct sched_ent *alarm)
}
int j;
for (j = 0; j < overlay_interface_count; j++){
if (overlay_interfaces[i].socket_type == ifconfig->socket_type &&
if (overlay_interfaces[j].socket_type == ifconfig->socket_type &&
strcasecmp(overlay_interfaces[j].name, ifconfig->file) == 0 &&
overlay_interfaces[j].state==INTERFACE_STATE_DETECTING){
overlay_interfaces[j].state=INTERFACE_STATE_UP;