diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-02-28 05:58:59 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-02-28 05:58:59 +0200 |
commit | 0c6f667896620943ee6ae899d6e36c3da5c98c54 (patch) | |
tree | e9e9f2e7dc1632525250b8a54834c9c207aa80bc /stream | |
parent | 54bb7a2582ce084895dcd0c6511dda4baf9a6c0e (diff) | |
parent | cde07e8a61ba78a8c35b1548181c1e1fd43215d9 (diff) |
Merge svn changes up to r28755
Diffstat (limited to 'stream')
-rw-r--r-- | stream/librtsp/rtsp_rtp.c | 2 | ||||
-rw-r--r-- | stream/udp.c | 1 |
2 files changed, 3 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); 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 |