[asterisk-commits] russell: trunk r197338 - /trunk/main/rtp_engine.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed May 27 17:42:18 CDT 2009


Author: russell
Date: Wed May 27 17:42:15 2009
New Revision: 197338

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=197338
Log:
Don't do a pointer comparison before setting the remote address.

Modified:
    trunk/main/rtp_engine.c

Modified: trunk/main/rtp_engine.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/main/rtp_engine.c?view=diff&rev=197338&r1=197337&r2=197338
==============================================================================
--- trunk/main/rtp_engine.c (original)
+++ trunk/main/rtp_engine.c Wed May 27 17:42:15 2009
@@ -359,10 +359,8 @@
 
 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 */
 




More information about the asterisk-commits mailing list