Ticket #513: wifidog-mac.patch
File wifidog-mac.patch, 476 bytes (added by anonymous, 13 years ago) |
---|
-
src/firewall.c
old new 135 135 136 136 /* Find ip, copy mac in reply */ 137 137 reply = NULL; 138 while (!feof(proc) && (fscanf(proc, " %15[0-9.] %*s %*s %17[A-F 0-9:] %*s %*s", ip, mac) == 2)) {138 while (!feof(proc) && (fscanf(proc, " %15[0-9.] %*s %*s %17[A-Fa-f0-9:] %*s %*s", ip, mac) == 2)) { 139 139 if (strcmp(ip, req_ip) == 0) { 140 140 reply = safe_strdup(mac); 141 141 break;