mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	ssl_client2: Reset peer CRT info string on reconnect
This commit is contained in:
		
							parent
							
								
									bd5580abb1
								
							
						
					
					
						commit
						23699efe78
					
				@ -2147,6 +2147,8 @@ send_request:
 | 
				
			|||||||
        mbedtls_printf( "  . Restarting connection from same port..." );
 | 
					        mbedtls_printf( "  . Restarting connection from same port..." );
 | 
				
			||||||
        fflush( stdout );
 | 
					        fflush( stdout );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        memset( peer_crt_info, 0, sizeof( peer_crt_info ) );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if( ( ret = mbedtls_ssl_session_reset( &ssl ) ) != 0 )
 | 
					        if( ( ret = mbedtls_ssl_session_reset( &ssl ) ) != 0 )
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            mbedtls_printf( " failed\n  ! mbedtls_ssl_session_reset returned -0x%x\n\n",
 | 
					            mbedtls_printf( " failed\n  ! mbedtls_ssl_session_reset returned -0x%x\n\n",
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user