summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvo/vo_bl.c1
-rw-r--r--stream/librtsp/rtsp_rtp.c2
-rw-r--r--stream/udp.c1
3 files changed, 4 insertions, 0 deletions
diff --git a/libvo/vo_bl.c b/libvo/vo_bl.c
index a194ade17a..bacec3acbb 100644
--- a/libvo/vo_bl.c
+++ b/libvo/vo_bl.c
@@ -177,6 +177,7 @@ static int udp_init(bl_host_t *h) {
}
h->fd = -1;
+ memset(&addr, 0, sizeof(addr));
addr.sin_family = AF_INET;
addr.sin_port = htons(h->port);
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);
diff --git a/stream/udp.c b/stream/udp.c
index 84769ce403..612d73708e 100644
--- a/stream/udp.c
+++ b/stream/udp.c
@@ -72,6 +72,7 @@ udp_open_socket (URL_t *url)
return -1;
}
+ memset(&server_address, 0, sizeof(server_address));
if (isalpha (url->hostname[0]))
{
#if !HAVE_WINSOCK2_H