[asterisk-commits] simon.perreault: branch group/v6-new r274770 - /team/group/v6-new/main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jul 8 11:59:18 CDT 2010
Author: simon.perreault
Date: Thu Jul 8 11:59:14 2010
New Revision: 274770
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=274770
Log:
Reverted r274684
Modified:
team/group/v6-new/main/rtp_engine.c
Modified: team/group/v6-new/main/rtp_engine.c
URL: http://svnview.digium.com/svn/asterisk/team/group/v6-new/main/rtp_engine.c?view=diff&rev=274770&r1=274769&r2=274770
==============================================================================
--- team/group/v6-new/main/rtp_engine.c (original)
+++ team/group/v6-new/main/rtp_engine.c Thu Jul 8 11:59:14 2010
@@ -409,8 +409,7 @@
int ast_rtp_instance_get_local_address(struct ast_rtp_instance *instance,
struct ast_sockaddr *address)
{
- if (ast_sockaddr_isnull(&instance->local_address) ||
- ast_sockaddr_cmp(address, &instance->local_address) != 0) {
+ if (ast_sockaddr_cmp(address, &instance->local_address) != 0) {
ast_sockaddr_copy(address, &instance->local_address);
return 1;
}
@@ -421,8 +420,7 @@
int ast_rtp_instance_get_remote_address(struct ast_rtp_instance *instance,
struct ast_sockaddr *address)
{
- if (!ast_sockaddr_isnull(&instance->remote_address) &&
- ast_sockaddr_cmp(address, &instance->remote_address) != 0) {
+ if (ast_sockaddr_cmp(address, &instance->remote_address) != 0) {
ast_sockaddr_copy(address, &instance->remote_address);
return 1;
}
More information about the asterisk-commits
mailing list