prevent traceback when negociating E2E. see #5015
This commit is contained in:
		
							parent
							
								
									17068c0a50
								
							
						
					
					
						commit
						c48f4c409f
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -886,7 +886,10 @@ class EncryptedStanzaSession(StanzaSession): | ||||||
| 		srses = secrets.secrets().retained_secrets(self.conn.name, | 		srses = secrets.secrets().retained_secrets(self.conn.name, | ||||||
| 			self.jid.getStripped()) | 			self.jid.getStripped()) | ||||||
| 
 | 
 | ||||||
| 		srshash = base64.b64decode(form.getField('srshash')) | 		try: | ||||||
|  | 			srshash = base64.b64decode(form['srshash']) | ||||||
|  | 		except IndexError: | ||||||
|  | 			return | ||||||
| 
 | 
 | ||||||
| 		for s in srses: | 		for s in srses: | ||||||
| 			secret = s[0] | 			secret = s[0] | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue