mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Split _all_ arguments before parsing them.
This fixes multicast RTP paging using linksys mode. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@282638 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -126,11 +126,6 @@ static struct ast_channel *multicast_rtp_request(const char *type, format_t form
|
||||
}
|
||||
*destination++ = '\0';
|
||||
|
||||
if (!ast_sockaddr_parse(&destination_address, destination,
|
||||
PARSE_PORT_REQUIRE)) {
|
||||
goto failure;
|
||||
}
|
||||
|
||||
if ((control = strchr(destination, '/'))) {
|
||||
*control++ = '\0';
|
||||
if (!ast_sockaddr_parse(&control_address, control,
|
||||
@@ -139,6 +134,11 @@ static struct ast_channel *multicast_rtp_request(const char *type, format_t form
|
||||
}
|
||||
}
|
||||
|
||||
if (!ast_sockaddr_parse(&destination_address, destination,
|
||||
PARSE_PORT_REQUIRE)) {
|
||||
goto failure;
|
||||
}
|
||||
|
||||
if (!(instance = ast_rtp_instance_new("multicast", NULL, &control_address, multicast_type))) {
|
||||
goto failure;
|
||||
}
|
||||
|
Reference in New Issue
Block a user