Fixed typo in changelog, and error in application of i/f autodetection patch.

This commit is contained in:
pdw
2011-10-04 20:40:34 +00:00
parent 09f3d33527
commit af3ed6ff48
2 changed files with 2 additions and 2 deletions

View File

@@ -103,7 +103,7 @@ static char *get_first_interface(void) {
while(nameindex[j].if_index != 0) {
if (strcmp(nameindex[j].if_name, "lo") != 0 && !is_bad_interface_name(nameindex[j].if_name)) {
strncpy(ifr.ifr_name, nameindex[j].if_name, sizeof(ifr.ifr_name));
if ((s == -1) || (ioctl(s, SIOCGIFFLAGS, &ifr) != -1) || (ifr.ifr_flags & IFF_UP)) {
if ((s == -1) || (ioctl(s, SIOCGIFFLAGS, &ifr) == -1) || (ifr.ifr_flags & IFF_UP)) {
i = xstrdup(nameindex[j].if_name);
break;
}