X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fparamhandling.c;h=1e07fcfb3aa018440580b65670c9061555d5b77c;hb=HEAD;hp=abe4f328d6e66c7cf3892f0e0ea529bbcf3f548e;hpb=02b97e390060ab97d00bb77608413a6dc14abf17;p=citadel.git diff --git a/webcit/paramhandling.c b/webcit/paramhandling.c index abe4f328d..1c301a5ee 100644 --- a/webcit/paramhandling.c +++ b/webcit/paramhandling.c @@ -1,7 +1,7 @@ /* * parse urlparts and post data * - * Copyright (c) 1996-2013 by the citadel.org team + * Copyright (c) 1996-2019 by the citadel.org team * * This program is open source software. You can redistribute it and/or * modify it under the terms of the GNU General Public License, version 3. @@ -13,7 +13,7 @@ */ #include "webcit.h" -#include "webserver.h" + /* uncomment to see all parameters sent to the server by the browser. */ /* #define DEBUG_URLSTRINGS */ @@ -178,6 +178,8 @@ void ParseURLParams(StrBuf *url) syslog(LOG_WARNING, "%s:%d: invalid url_key of size %d in string size %ld", __FILE__, __LINE__, keylen, (long)sizeof(u->url_key) ); + free(u); + return; } if (keylen < 0) {