[asterisk-commits] res rtp asterisk:  Fix a self-comparison identified by gcc 6 (asterisk[11])
    SVN commits to the Asterisk project 
    asterisk-commits at lists.digium.com
       
    Wed Jun 22 20:36:44 CDT 2016
    
    
  
Anonymous Coward #1000019 has submitted this change and it was merged.
Change subject: res_rtp_asterisk:  Fix a self-comparison identified by gcc 6
......................................................................
res_rtp_asterisk:  Fix a self-comparison identified by gcc 6
gcc 6 caught a previously unidentified self-comparison in
ice_candidate_cmp.  Fixed it and re-ordered the predicates for better
short-circuiting.
ASTERISK-26140 #close
Change-Id: I3da713c568e24064430257b3502fbdafd35af7a7
---
M res/res_rtp_asterisk.c
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
  Richard Mudgett: Looks good to me, but someone else must approve
  Anonymous Coward #1000019: Verified
  Joshua Colp: Looks good to me, approved
diff --git a/res/res_rtp_asterisk.c b/res/res_rtp_asterisk.c
index 2c0bb8b..ba004ac 100644
--- a/res/res_rtp_asterisk.c
+++ b/res/res_rtp_asterisk.c
@@ -484,8 +484,8 @@
 
 	if (strcmp(candidate1->foundation, candidate2->foundation) ||
 			candidate1->id != candidate2->id ||
-			ast_sockaddr_cmp(&candidate1->address, &candidate2->address) ||
-			candidate1->type != candidate1->type) {
+			candidate1->type != candidate2->type ||
+			ast_sockaddr_cmp(&candidate1->address, &candidate2->address)) {
 		return 0;
 	}
 
-- 
To view, visit https://gerrit.asterisk.org/3081
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I3da713c568e24064430257b3502fbdafd35af7a7
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 11
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
    
    
More information about the asterisk-commits
mailing list