mirror of
				https://github.com/clearml/dropbear
				synced 2025-06-26 18:17:32 +00:00 
			
		
		
		
	Don't exit fatally if authorized_keys has a line like
command="something" ssh-rsa --HG-- branch : ecc
This commit is contained in:
		
							parent
							
								
									e60a84d0ed
								
							
						
					
					
						commit
						b77864931b
					
				| @ -294,8 +294,8 @@ static int checkpubkey(unsigned char* algo, unsigned int algolen, | |||||||
| 			options_buf = buf_new(options_len); | 			options_buf = buf_new(options_len); | ||||||
| 			buf_putbytes(options_buf, options_start, options_len); | 			buf_putbytes(options_buf, options_start, options_len); | ||||||
| 
 | 
 | ||||||
| 			/* compare the algorithm */ | 			/* compare the algorithm. +3 so we have enough bytes to read a space and some base64 characters too. */ | ||||||
| 			if (line->pos + algolen > line->len) { | 			if (line->pos + algolen+3 > line->len) { | ||||||
| 				continue; | 				continue; | ||||||
| 			} | 			} | ||||||
| 			if (strncmp(buf_getptr(line, algolen), algo, algolen) != 0) {  | 			if (strncmp(buf_getptr(line, algolen), algo, algolen) != 0) {  | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user