projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b32859
)
URL-Parsing: abort on error.
author
Wilfried Goesgens
<dothebart@citadel.org>
Sat, 25 Aug 2012 07:27:56 +0000
(09:27 +0200)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Sat, 25 Aug 2012 07:27:56 +0000
(09:27 +0200)
webcit/paramhandling.c
patch
|
blob
|
history
diff --git
a/webcit/paramhandling.c
b/webcit/paramhandling.c
index 1e26e9cb0d1b26fa7dce70a7857851d4130cddaa..ac8585b50b517c6eedb1b1cbcaabef997b98f81a 100644
(file)
--- a/
webcit/paramhandling.c
+++ b/
webcit/paramhandling.c
@@
-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)