[asterisk-commits] jrose: branch 11 r409130 - /branches/11/res/res_rtp_asterisk.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Feb 27 13:38:13 CST 2014


Author: jrose
Date: Thu Feb 27 13:38:10 2014
New Revision: 409130

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=409130
Log:
res_rtp_asterisk: correct build error from r409129

Accidentally placed a declaration below functional code

(issue ASTERISK-23213)
Reported by: Andrea Suisani
Review: https://reviewboard.asterisk.org/r/3256/

Modified:
    branches/11/res/res_rtp_asterisk.c

Modified: branches/11/res/res_rtp_asterisk.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/res/res_rtp_asterisk.c?view=diff&rev=409130&r1=409129&r2=409130
==============================================================================
--- branches/11/res/res_rtp_asterisk.c (original)
+++ branches/11/res/res_rtp_asterisk.c Thu Feb 27 13:38:10 2014
@@ -1688,11 +1688,10 @@
 
 		if (!ast_stun_request(component == AST_RTP_ICE_COMPONENT_RTCP ? rtp->rtcp->s : rtp->s, &stunaddr, NULL, &answer)) {
 			pj_sockaddr base;
+			pj_str_t mapped = pj_str(ast_strdupa(ast_inet_ntoa(answer.sin_addr)));
 
 			/* Use the first local host candidate as the base */
 			pj_sockaddr_cp(&base, &address[0]);
-
-			pj_str_t mapped = pj_str(ast_strdupa(ast_inet_ntoa(answer.sin_addr)));
 
 			pj_sockaddr_init(pj_AF_INET(), &address[0], &mapped, ntohs(answer.sin_port));
 




More information about the asterisk-commits mailing list