~mdw
/
preload-hacks
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
noip.c: Have parsers fail if there's trailing junk.
[preload-hacks]
/
noip.c
diff --git
a/noip.c
b/noip.c
index
5cbb84e
..
12c9f9c
100644
(file)
--- a/
noip.c
+++ b/
noip.c
@@
-1054,6
+1054,7
@@
static void parse_acl_line(char **pp, aclnode ***tail)
if (*p != ',') break;
if (*p) p++;
}
+ if (*p) goto bad;
*pp = p;
return;
@@
-1075,6
+1076,7
@@
static void parse_autoports(char **pp)
if (*p != '-') goto bad; p++;
NEXTNUMBER(q, del); y = strtoul(q, 0, 0); RESCAN(del);
minautoport = x; maxautoport = y;
+ SKIPSPC; if (*p) goto bad;
*pp = p;
return;