Commit dd54224
committed
ipv6: Fix getHomeAddress() to properly iterate interfaces and find valid home address
The for loop contained an unconditional return in its body, so the loop
increment was never executed and it always operated on the first interface
only. Replace with direct access to the first interface using an if check.1 parent 846093b commit dd54224
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
747 | 747 | | |
748 | 748 | | |
749 | 749 | | |
750 | | - | |
751 | | - | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
752 | 755 | | |
753 | 756 | | |
754 | 757 | | |
| |||
0 commit comments