From 30f31c937dbf2aa535ecf7262348dad95cd0daa9 Mon Sep 17 00:00:00 2001
From: Alexandre Savard <alexandresavard@alexandresavard-desktop.(none)>
Date: Mon, 18 Jan 2010 12:44:18 -0500
Subject: [PATCH] [#1722] Fix iteration over all attribute field for media

---
 sflphone-common/src/sip/sdp.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sflphone-common/src/sip/sdp.cpp b/sflphone-common/src/sip/sdp.cpp
index cf7749a523..9e9aed149c 100644
--- a/sflphone-common/src/sip/sdp.cpp
+++ b/sflphone-common/src/sip/sdp.cpp
@@ -706,7 +706,7 @@ void Sdp::get_remote_sdp_crypto_from_offer (const pjmedia_sdp_session* remote_sd
 	// iterate over all attribute for this media
         for(j = 0; j < attr_count; j++) {
 
-	    attribute = media->attr[i];
+	    attribute = media->attr[j];
 
 	    // test if this attribute is a crypto
 	    if (pj_stricmp2 (&attribute->name, "crypto") == 0) {
-- 
GitLab