aboutsummaryrefslogtreecommitdiffhomepage
path: root/stream/librtsp
diff options
context:
space:
mode:
Diffstat (limited to 'stream/librtsp')
-rw-r--r--stream/librtsp/rtsp_rtp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/librtsp/rtsp_rtp.c b/stream/librtsp/rtsp_rtp.c
index 54a2180375..0c00e5b454 100644
--- a/stream/librtsp/rtsp_rtp.c
+++ b/stream/librtsp/rtsp_rtp.c
@@ -245,6 +245,7 @@ rtcp_connect (int client_port, int server_port, const char* server_hostname)
return -1;
}
+ memset(&sin, 0, sizeof(sin));
sin.sin_family = AF_INET;
sin.sin_addr.s_addr = INADDR_ANY;
sin.sin_port = htons (client_port);
@@ -293,6 +294,7 @@ rtp_connect (char *hostname, int port)
if (s == -1)
return -1;
+ memset(&sin, 0, sizeof(sin));
sin.sin_family = AF_INET;
if (!hostname || !strcmp (hostname, "0.0.0.0"))
sin.sin_addr.s_addr = htonl (INADDR_ANY);