Benjamin Renard commited on 2014-02-07 16:17:08
Showing 2 changed files, with 14 additions and 0 deletions.
... | ... |
@@ -0,0 +1,13 @@ |
1 |
+Index: wifidog/src/conf.c |
|
2 |
+=================================================================== |
|
3 |
+--- wifidog.orig/src/conf.c 2014-02-07 17:02:11.009806887 +0100 |
|
4 |
++++ wifidog/src/conf.c 2014-02-07 17:03:24.329807175 +0100 |
|
5 |
+@@ -528,7 +528,7 @@ |
|
6 |
+ port = leftover; |
|
7 |
+ TO_NEXT_WORD(leftover, finished); |
|
8 |
+ for (i = 0; *(port + i) != '\0'; i++) |
|
9 |
+- if (!isdigit((unsigned char)*(port + i))) |
|
10 |
++ if (!isdigit((unsigned char)*(port + i)) && *(port + i)!=':') |
|
11 |
+ all_nums = 0; /*< No longer only digits */ |
|
12 |
+ if (!all_nums) { |
|
13 |
+ debug(LOG_ERR, "Invalid port %s", port); |