libupnp/upnp/inc
Chandra Penke 575e5fc196 SUMMARY: Minor change in comment for SetMaxContentLenght in upnp.h
This is a follow up from issue 6 in tracker id 3056713: calling UpnpSetMaxContentLength() by passing '0' disables the content length checking. This is useful for developing some prototype applications that deal with a lot of XML/SOAP data, and for debugging.

The corresponding c file change is already in the pupnp tree. Copy/pasting the relevant block of code here for clarity:

In upnp/src/genlib/net/http/httpreadwrite.c:

if (g_maxContentLength > 0 && parser->content_length > (unsigned int)g_maxContentLength) {
	*http_error_code = HTTP_REQ_ENTITY_TOO_LARGE;
	line = __LINE__;
	ret = UPNP_E_OUTOF_BOUNDS;
	goto ExitFunction;
}

This block of code checks only does the bounds check if g_maxContentLength > 0, and it's only place g_maxContentLength is checked.

Attached is a patch against the latest sources.
(cherry picked from commit 7f1e164a5a)
2010-09-10 00:42:27 -03:00
..
upnp.h SUMMARY: Minor change in comment for SetMaxContentLenght in upnp.h 2010-09-10 00:42:27 -03:00
upnpconfig.h.in Add support for conditionally enabling ipv6 2010-09-10 00:32:49 -03:00
upnpdebug.h 1 - Ported some of IPV6 code to 1.6.7. 2010-03-31 17:53:16 +00:00
UpnpGlobal.h Do not use C++ like comments. Some compilers don't like it. 2008-08-14 12:06:22 +00:00
UpnpInet.h Backport of svn revision 504: 2010-03-21 15:42:40 +00:00
UpnpString.h Adding UpnpString. 2010-04-25 00:44:34 +00:00
upnptools.h * Removing the Dbg_Level, InitLog, SetLogFileNames and CloseLog 2007-05-25 15:02:12 +00:00