From: Mark Wooding Date: Mon, 2 May 2016 21:25:35 +0000 (+0100) Subject: noip.c: Make sure parsers update the cursor when they finish. X-Git-Tag: 1.2.0~47 X-Git-Url: https://git.distorted.org.uk/~mdw/preload-hacks/commitdiff_plain/f797ea6d51ddbd9efeb906bdd4ad6783a85850d2?hp=1cce4a4106649be0eda60ee63b1afb99ba4ee83e noip.c: Make sure parsers update the cursor when they finish. Even the ones which don't expect anything else to follow. --- diff --git a/noip.c b/noip.c index e545ddf..1342a33 100644 --- 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++; } + *pp = p; 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; + *pp = p; return; bad: