noip.c: Make sure parsers update the cursor when they finish.
[preload-hacks] / noip.c
diff --git a/noip.c b/noip.c
index e545ddf..1342a33 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++;
   }
+  *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: