diff options
author | bbryant <bbryant@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-01-14 20:11:55 +0000 |
---|---|---|
committer | bbryant <bbryant@f38db490-d61c-443f-a65b-d21fe96a405b> | 2011-01-14 20:11:55 +0000 |
commit | 2cf287b2e65059dd3b303fee717c8b7dfa64a93a (patch) | |
tree | 1163ab4df0493c6032281eda149d725058f2b808 /channels | |
parent | bcfab50296f1fc565b20c4f772a8d576ad77f102 (diff) |
Changing previous revisions 301845/301847 to use ast_sockaddr_setnull() instead
of setting the field manually to avoid uninitialized data.
Review: https://reviewboard.asterisk.org/r/1076/
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.8@301851 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_multicast_rtp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_multicast_rtp.c b/channels/chan_multicast_rtp.c index 509a0ca8c..55b757567 100644 --- a/channels/chan_multicast_rtp.c +++ b/channels/chan_multicast_rtp.c @@ -111,11 +111,13 @@ static struct ast_channel *multicast_rtp_request(const char *type, format_t form { char *tmp = ast_strdupa(data), *multicast_type = tmp, *destination, *control; struct ast_rtp_instance *instance; - struct ast_sockaddr control_address = { .len = 0 }; + struct ast_sockaddr control_address; struct ast_sockaddr destination_address; struct ast_channel *chan; format_t fmt = ast_best_codec(format); + ast_sockaddr_setnull(&control_address); + /* If no type was given we can't do anything */ if (ast_strlen_zero(multicast_type)) { goto failure; |