ignore wrong incoming stanza. Fixes #7416
This commit is contained in:
		
							parent
							
								
									bbf334ae6f
								
							
						
					
					
						commit
						6b6fd5b20d
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
					@ -75,7 +75,11 @@ class ConnectionJingle(object):
 | 
				
			||||||
        adequatelly.
 | 
					        adequatelly.
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
        # get data
 | 
					        # get data
 | 
				
			||||||
        jid = helpers.get_full_jid_from_iq(stanza)
 | 
					        try:
 | 
				
			||||||
 | 
					            jid = helpers.get_full_jid_from_iq(stanza)
 | 
				
			||||||
 | 
					        except helpers.InvalidFormat:
 | 
				
			||||||
 | 
					            log.warn('Invalid JID: %s, ignoring it' % stanza.getFrom())
 | 
				
			||||||
 | 
					            return
 | 
				
			||||||
        id_ = stanza.getID()
 | 
					        id_ = stanza.getID()
 | 
				
			||||||
        if (jid, id_) in self.__iq_responses.keys():
 | 
					        if (jid, id_) in self.__iq_responses.keys():
 | 
				
			||||||
            self.__iq_responses[(jid, id_)].on_stanza(stanza)
 | 
					            self.__iq_responses[(jid, id_)].on_stanza(stanza)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue