Don't do a pointer comparison before setting the remote address.
authorRussell Bryant <russell@russellbryant.com>
Wed, 27 May 2009 22:42:15 +0000 (22:42 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 27 May 2009 22:42:15 +0000 (22:42 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@197338 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/rtp_engine.c

index eeeefa9..90c6471 100644 (file)
@@ -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 */