/*
* 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.
keylen = aptr - up - 1; /* -1 -> '=' */
if (keylen > sizeof(u->url_key)) {
syslog(LOG_WARNING, "%s:%d: invalid url_key of size %d in string size %ld",
- __FILE__, __LINE__, keylen, sizeof(u->url_key)
+ __FILE__, __LINE__, keylen, (long)sizeof(u->url_key)
);
+ free(u);
+ return;
}
if (keylen < 0) {