Fixed a SIGABRT in send_ans_key().
In some cases the remote host does not know our key but we have got theirs. So we send him our key but send_ans_key() aborted on this point.
This commit is contained in:
		
							parent
							
								
									df42bc3621
								
							
						
					
					
						commit
						9910f8f2d1
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -263,7 +263,7 @@ bool req_key_h(connection_t *c, const char *request) {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
bool send_ans_key(node_t *to) {
 | 
			
		||||
	if(to->status.sptps)
 | 
			
		||||
	if(to->status.sptps && to->status.validkey_in)
 | 
			
		||||
		abort();
 | 
			
		||||
 | 
			
		||||
#ifdef DISABLE_LEGACY
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue