mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-10-30 19:20:40 -04:00 
			
		
		
		
	Fix bug in SSL ticket implementation removing keys of age < 1s
Fixes #1968.
This commit is contained in:
		
							parent
							
								
									1d7399351e
								
							
						
					
					
						commit
						aa71500173
					
				| @ -97,7 +97,7 @@ static int ssl_ticket_update_keys( mbedtls_ssl_ticket_context *ctx ) | |||||||
|         uint32_t current_time = (uint32_t) mbedtls_time( NULL ); |         uint32_t current_time = (uint32_t) mbedtls_time( NULL ); | ||||||
|         uint32_t key_time = ctx->keys[ctx->active].generation_time; |         uint32_t key_time = ctx->keys[ctx->active].generation_time; | ||||||
| 
 | 
 | ||||||
|         if( current_time > key_time && |         if( current_time >= key_time && | ||||||
|             current_time - key_time < ctx->ticket_lifetime ) |             current_time - key_time < ctx->ticket_lifetime ) | ||||||
|         { |         { | ||||||
|             return( 0 ); |             return( 0 ); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Hanno Becker
						Hanno Becker