mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-26 14:27:14 +00:00
Merged revisions 301851 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r301851 | bbryant | 2011-01-14 15:11:55 -0500 (Fri, 14 Jan 2011) | 6 lines 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: https://origsvn.digium.com/svn/asterisk/trunk@301858 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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;
|
char *tmp = ast_strdupa(data), *multicast_type = tmp, *destination, *control;
|
||||||
struct ast_rtp_instance *instance;
|
struct ast_rtp_instance *instance;
|
||||||
struct ast_sockaddr control_address = { .len = 0 };
|
struct ast_sockaddr control_address;
|
||||||
struct ast_sockaddr destination_address;
|
struct ast_sockaddr destination_address;
|
||||||
struct ast_channel *chan;
|
struct ast_channel *chan;
|
||||||
format_t fmt = ast_best_codec(format);
|
format_t fmt = ast_best_codec(format);
|
||||||
|
|
||||||
|
ast_sockaddr_setnull(&control_address);
|
||||||
|
|
||||||
/* If no type was given we can't do anything */
|
/* If no type was given we can't do anything */
|
||||||
if (ast_strlen_zero(multicast_type)) {
|
if (ast_strlen_zero(multicast_type)) {
|
||||||
goto failure;
|
goto failure;
|
||||||
|
|||||||
Reference in New Issue
Block a user