mirror of
				https://github.com/jtesta/ssh-audit.git
				synced 2025-10-30 21:15:27 +01:00 
			
		
		
		
	Handle case of KexDH.recv_reply() returning None.
This commit is contained in:
		| @@ -724,6 +724,7 @@ class SSH2:  # pylint: disable=too-few-public-methods | |||||||
|                     # with the host key and its length.  Bingo.  We also get back the host key fingerprint. |                     # with the host key and its length.  Bingo.  We also get back the host key fingerprint. | ||||||
|                     kex_group.send_init(s) |                     kex_group.send_init(s) | ||||||
|                     host_key = kex_group.recv_reply(s, variable_key_len) |                     host_key = kex_group.recv_reply(s, variable_key_len) | ||||||
|  |                     if host_key is not None: | ||||||
|                         server_kex.set_host_key(host_key_type, host_key) |                         server_kex.set_host_key(host_key_type, host_key) | ||||||
|  |  | ||||||
|                     hostkey_modulus_size = kex_group.get_hostkey_size() |                     hostkey_modulus_size = kex_group.get_hostkey_size() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Joe Testa
					Joe Testa