rtspconnection: Properly initialize stack-allocated RTSP message to all-zeroes
This commit is contained in:
parent
5ac65d9e3a
commit
b0c834df1b
@ -1124,11 +1124,14 @@ gst_rtsp_connection_connect (GstRTSPConnection * conn, GTimeVal * timeout)
|
|||||||
{
|
{
|
||||||
GstRTSPResult result;
|
GstRTSPResult result;
|
||||||
GstRTSPMessage response;
|
GstRTSPMessage response;
|
||||||
|
|
||||||
|
memset (&response, 0, sizeof (response));
|
||||||
gst_rtsp_message_init (&response);
|
gst_rtsp_message_init (&response);
|
||||||
|
|
||||||
result = gst_rtsp_connection_connect_with_response (conn, timeout, &response);
|
result = gst_rtsp_connection_connect_with_response (conn, timeout, &response);
|
||||||
|
|
||||||
gst_rtsp_message_unset (&response);
|
gst_rtsp_message_unset (&response);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user