URL-Parsing: abort on error.
authorWilfried Goesgens <dothebart@citadel.org>
Sat, 25 Aug 2012 07:27:56 +0000 (09:27 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 25 Aug 2012 07:28:47 +0000 (09:28 +0200)
webcit/paramhandling.c

index d3c9507b2aa7a6b91fbc87639e50c8139353889d..5c87c578c822886bfb953702bfe9880fb01ae22e 100644 (file)
@@ -52,7 +52,7 @@ void ParseURLParams(StrBuf *url)
                keylen = aptr - up - 1; /* -1 -> '=' */
                if(keylen > sizeof(u->url_key)) {
                        syslog(1, "invalid url_key");
-                       continue;
+                       return;
                }
 
                u = (urlcontent *) malloc(sizeof(urlcontent));
@@ -61,7 +61,7 @@ void ParseURLParams(StrBuf *url)
                if (keylen < 0) {
                        syslog(1, "invalid url_key");
                        free(u);
-                       continue;
+                       return;
                }
                
                if (strncmp(u->url_key, "__", 2) != 0)