~mdw
/
preload-hacks
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e397f0b
)
noip.c: Have parsers fail if there's trailing junk.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 2 May 2016 21:26:35 +0000
(22:26 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 2 May 2016 23:12:08 +0000
(
00:12
+0100)
noip.c
patch
|
blob
|
blame
|
history
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;