mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	fix crash if public key is null
This commit is contained in:
		
							parent
							
								
									aa27746982
								
							
						
					
					
						commit
						0f9e3c5b33
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -97,7 +97,7 @@ namespace crypto
 | 
			
		|||
		uint8_t publicKey[EDDSA25519_PUBLIC_KEY_LENGTH];	
 | 
			
		||||
		size_t len = EDDSA25519_PUBLIC_KEY_LENGTH;
 | 
			
		||||
		EVP_PKEY_get_raw_public_key (m_Pkey, publicKey, &len);
 | 
			
		||||
		if (memcmp (publicKey, signingPublicKey, EDDSA25519_PUBLIC_KEY_LENGTH))
 | 
			
		||||
		if (signingPublicKey && memcmp (publicKey, signingPublicKey, EDDSA25519_PUBLIC_KEY_LENGTH))
 | 
			
		||||
		{
 | 
			
		||||
			LogPrint (eLogWarning, "EdDSA public key mismatch. Fallback");
 | 
			
		||||
			EVP_PKEY_free (m_Pkey);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue