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.
This commit is contained in:
Fabrice Fontaine 2010-11-23 14:40:08 +01:00 committed by Marcelo Roberto Jimenez
parent bda942b22a
commit 2c3bce13bd
2 changed files with 9 additions and 1 deletions

View File

@ -2,6 +2,14 @@
Version 1.6.10
*******************************************************************************
2010-11-23 Fabrice Fontaine <fabrice.fontaine(at)orange-ftgroup.com>
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 <fabrice.fontaine(at)orange-ftgroup.com>
Returning the Sid in Upnp_Event_Subscribe.

View File

@ -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"