From b3b8e2f46b1e08cca5c36a7c819b39a284ee46b6 Mon Sep 17 00:00:00 2001
From: Thibaut GIRKA <thib@sitedethib.com>
Date: Mon, 15 Mar 2010 19:25:27 +0100
Subject: [PATCH] Fix TraceBack in the case of failure in jingle content
 negotiation

---
 src/common/jingle_session.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/common/jingle_session.py b/src/common/jingle_session.py
index 9ce290c9d7..c572262c08 100644
--- a/src/common/jingle_session.py
+++ b/src/common/jingle_session.py
@@ -427,13 +427,13 @@ class JingleSession(object):
         # error.
 
         # Lets check what kind of jingle session does the peer want
-        contents, contents_rejected, reason = self.__parse_contents(jingle)
+        contents, contents_rejected, reason_txt = self.__parse_contents(jingle)
 
         # If there's no content we understand...
         if not contents:
             # TODO: http://xmpp.org/extensions/xep-0166.html#session-terminate
             reason = xmpp.Node('reason')
-            reason.setTag(reason)
+            reason.setTag(reason_txt)
             self.__ack(stanza, jingle, error, action)
             self._session_terminate(reason)
             raise xmpp.NodeProcessed
-- 
GitLab