Commit 06c2cf0
Fix "Error getting index for interface eth0"
errno is only set on error, it's not reset to 0 on success.
So instead check the returned index, which would be > 0 on success.1 parent 730ab56 commit 06c2cf0
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments