diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-05-27 22:42:15 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-05-27 22:42:15 +0000 |
commit | 3428bd4097bc70292986c921f134c8c2ab22ea9b (patch) | |
tree | f6afe6d0e441cabd4ccceff5c117a8ec48007145 /main/rtp_engine.c | |
parent | 49e31e4167aec1e02d4482ef3cf34c18f42521d6 (diff) |
Don't do a pointer comparison before setting the remote address.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@197338 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/rtp_engine.c')
-rw-r--r-- | main/rtp_engine.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/main/rtp_engine.c b/main/rtp_engine.c index eeeefa90e..90c6471f6 100644 --- a/main/rtp_engine.c +++ b/main/rtp_engine.c @@ -359,10 +359,8 @@ int ast_rtp_instance_set_local_address(struct ast_rtp_instance *instance, struct int ast_rtp_instance_set_remote_address(struct ast_rtp_instance *instance, struct sockaddr_in *address) { - if (&instance->remote_address != address) { - instance->remote_address.sin_addr = address->sin_addr; - instance->remote_address.sin_port = address->sin_port; - } + instance->remote_address.sin_addr = address->sin_addr; + instance->remote_address.sin_port = address->sin_port; /* moo */ |