don't fail to receive a jingle FT request with no <security> tag

This commit is contained in:
Yann Leboulanger 2014-02-23 20:53:04 +01:00
parent 700cbeb13f
commit a5eb0070e9
1 changed files with 4 additions and 3 deletions

View File

@ -2063,9 +2063,10 @@ class FileRequestReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
if self.jingle_content:
secu = self.jingle_content.getTag('security')
self.FT_content.use_security = bool(secu)
fingerprint = secu.getTag('fingerprint')
if fingerprint:
self.FT_content.x509_fingerprint = fingerprint.getData()
if secu:
fingerprint = secu.getTag('fingerprint')
if fingerprint:
self.FT_content.x509_fingerprint = fingerprint.getData()
if not self.FT_content.transport:
self.FT_content.transport = JingleTransportSocks5()
self.FT_content.transport.set_our_jid(