From b0c834df1b1e1ad7f1bfa5f5b326aacadb974c81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 14 Dec 2015 19:03:33 +0100 Subject: [PATCH] rtspconnection: Properly initialize stack-allocated RTSP message to all-zeroes --- gst-libs/gst/rtsp/gstrtspconnection.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst-libs/gst/rtsp/gstrtspconnection.c b/gst-libs/gst/rtsp/gstrtspconnection.c index d3cb457b38..3e5add4ce6 100644 --- a/gst-libs/gst/rtsp/gstrtspconnection.c +++ b/gst-libs/gst/rtsp/gstrtspconnection.c @@ -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; }