chiark
/
gitweb
/
~mdw
/
preload-hacks
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1cce4a4
)
noip.c: Make sure parsers update the cursor when they finish.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 2 May 2016 21:25:35 +0000
(22:25 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 2 May 2016 23:06:14 +0000
(
00:06
+0100)
Even the ones which don't expect anything else to follow.
noip.c
patch
|
blob
|
blame
|
history
diff --git
a/noip.c
b/noip.c
index e545ddf2efbcde84ac1080c264a942ef53f4ca97..1342a338634ff51a3b55f43c648fb10986e421c1 100644
(file)
--- a/
noip.c
+++ b/
noip.c
@@
-1040,6
+1040,7
@@
static void parse_acl_line(char **pp, aclnode ***tail)
if (*p != ',') break;
if (*p) p++;
}
if (*p != ',') break;
if (*p) p++;
}
+ *pp = p;
return;
bad:
return;
bad:
@@
-1060,6
+1061,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;
if (*p != '-') goto bad; p++;
NEXTNUMBER(q, del); y = strtoul(q, 0, 0); RESCAN(del);
minautoport = x; maxautoport = y;
+ *pp = p;
return;
bad:
return;
bad: