From 2c3bce13bdcf534c77f525c7e7960cad2bf43087 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Tue, 23 Nov 2010 14:40:08 +0100 Subject: [PATCH] Major bug fix in http_SendMessage. Currently, http_SendMessage was not able to write to write a buffer due to a bad use of file_buf instead of buf. This bug was introduced by the 0197-Doxygen-reformating-compiler-warnings patch. --- ChangeLog | 8 ++++++++ upnp/src/genlib/net/http/httpreadwrite.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b242d3f..f22cdde 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,14 @@ Version 1.6.10 ******************************************************************************* +2010-11-23 Fabrice Fontaine + + Major bug fix in http_SendMessage. + + Currently, http_SendMessage was not able to write to write a buffer + due to a bad use of file_buf instead of buf. This bug was introduced by + the 0197-Doxygen-reformating-compiler-warnings patch. + 2010-11-23 Fabrice Fontaine Returning the Sid in Upnp_Event_Subscribe. diff --git a/upnp/src/genlib/net/http/httpreadwrite.c b/upnp/src/genlib/net/http/httpreadwrite.c index 52df2f0..44b41b1 100644 --- a/upnp/src/genlib/net/http/httpreadwrite.c +++ b/upnp/src/genlib/net/http/httpreadwrite.c @@ -589,7 +589,7 @@ int http_SendMessage(IN SOCKINFO * info, IN OUT int *TimeOut, buf = va_arg(argp, char *); buf_length = va_arg(argp, size_t); if (buf_length > 0) { - nw = sock_write(info, file_buf, num_read, TimeOut); + nw = sock_write(info, buf, buf_length, TimeOut); num_written = (size_t)nw; UpnpPrintf(UPNP_INFO, HTTP, __FILE__, __LINE__, ">>> (SENT) >>>\n"