--- libaitwww/src/aitwww.c 2012/03/09 12:33:41 1.1.1.1.2.3 +++ libaitwww/src/aitwww.c 2012/03/09 12:47:06 1.1.1.1.2.4 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitwww.c,v 1.1.1.1.2.3 2012/03/09 12:33:41 misho Exp $ +* $Id: aitwww.c,v 1.1.1.1.2.4 2012/03/09 12:47:06 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -524,6 +524,10 @@ www_parseMultiPart(const char *str, int ctlen, const c } mime = mime_parseMultiPart(str, ctlen, www_getAttribute(attr, "boundary"), NULL); www_freeAttributes(&attr); + if (!mime) { + www_closeCGI(&cgi); + return NULL; + } SLIST_FOREACH(m, mime, mime_node) { s = mime_getValue(m, "content-disposition");