Merge branch 'fifteen' of ssh://git.ipfire.org/pub/git/ipfire-2.x into fifteen

This commit is contained in:
Michael Tremer
2013-10-04 14:53:03 +02:00
7 changed files with 11 additions and 13 deletions

View File

@@ -130,7 +130,7 @@ int main(void) {
macaddress = strtok(NULL, ",");
enabled = strtok(NULL, ",");
if (strncmp(enabled, "on", 2) != 0) {
if (strcmp(enabled, "on") == 0) {
/* both specified, added security */
if ((strlen(macaddress) == 17) && (VALID_IP_AND_MASK(ipaddress))) {
snprintf(command, STRING_SIZE-1, "/sbin/iptables -A WIRELESSINPUT -m mac --mac-source %s -s %s -i %s -j ACCEPT", macaddress, ipaddress, blue_dev);