gst/rtsp/rtspconnection.c: Apply patch from Sebastien Cote to fix #319184.

Original commit message from CVS:
* gst/rtsp/rtspconnection.c: (read_body):
Apply patch from Sebastien Cote to fix #319184.
This commit is contained in:
Wim Taymans 2005-11-21 20:11:59 +00:00
parent 15c52996c2
commit 99b2663862
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2005-11-21 Wim Taymans <wim@fluendo.com>
* gst/rtsp/rtspconnection.c: (read_body):
Apply patch from Sebastien Cote to fix #319184.
2005-11-21 Thomas Vander Stichele <thomas at apestaart dot org>
* configure.ac:

View file

@ -360,7 +360,8 @@ read_body (gint fd, glong content_length, RTSPMessage * msg)
goto done;
}
body = g_malloc (content_length);
body = g_malloc (content_length + 1);
body[content_length] = '\0';
bodyptr = body;
to_read = content_length;
while (to_read > 0) {
@ -375,7 +376,7 @@ read_body (gint fd, glong content_length, RTSPMessage * msg)
}
done:
rtsp_message_set_body (msg, (guint8 *) body, content_length);
rtsp_message_set_body (msg, (guint8 *) body, content_length + 1);
return RTSP_OK;