rtspconnection: Properly initialize stack-allocated RTSP message to all-zeroes
authorSebastian Dröge <sebastian@centricular.com>
Mon, 14 Dec 2015 18:03:33 +0000 (19:03 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 14 Dec 2015 18:03:33 +0000 (19:03 +0100)
gst-libs/gst/rtsp/gstrtspconnection.c

index d3cb457..3e5add4 100644 (file)
@@ -1124,11 +1124,14 @@ gst_rtsp_connection_connect (GstRTSPConnection * conn, GTimeVal * timeout)
 {
   GstRTSPResult result;
   GstRTSPMessage response;
+
+  memset (&response, 0, sizeof (response));
   gst_rtsp_message_init (&response);
 
   result = gst_rtsp_connection_connect_with_response (conn, timeout, &response);
 
   gst_rtsp_message_unset (&response);
+
   return result;
 }