mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 12:11:27 -05:00 
			
		
		
		
	Fix file leak in test program
A similar bug was fixed earlier in ssl_server2, but we missed the fix in ssl_client2.
This commit is contained in:
		
							parent
							
								
									b08e44fda7
								
							
						
					
					
						commit
						2ac4d86040
					
				@ -619,6 +619,7 @@ static int nss_keylog_export( void *p_expkey,
 | 
				
			|||||||
        if( fwrite( nss_keylog_line, 1, len, f ) != len )
 | 
					        if( fwrite( nss_keylog_line, 1, len, f ) != len )
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            ret = -1;
 | 
					            ret = -1;
 | 
				
			||||||
 | 
					            fclose( f );
 | 
				
			||||||
            goto exit;
 | 
					            goto exit;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user