mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	ssl_client2 and ssl_server2 now exit with 1 on errors (shell
limitations)
This commit is contained in:
		
							parent
							
								
									f85778efb0
								
							
						
					
					
						commit
						dbd79ca617
					
				@ -805,6 +805,10 @@ exit:
 | 
			
		||||
    fflush( stdout ); getchar();
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
    // Shell can not handle large exit numbers -> 1 for errors
 | 
			
		||||
    if( ret < 0 )
 | 
			
		||||
        ret = 1;
 | 
			
		||||
 | 
			
		||||
    return( ret );
 | 
			
		||||
}
 | 
			
		||||
#endif /* POLARSSL_BIGNUM_C && POLARSSL_ENTROPY_C && POLARSSL_SSL_TLS_C &&
 | 
			
		||||
 | 
			
		||||
@ -865,6 +865,10 @@ exit:
 | 
			
		||||
    fflush( stdout ); getchar();
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
    // Shell can not handle large exit numbers -> 1 for errors
 | 
			
		||||
    if( ret < 0 )
 | 
			
		||||
        ret = 1;
 | 
			
		||||
 | 
			
		||||
    return( ret );
 | 
			
		||||
}
 | 
			
		||||
#endif /* POLARSSL_BIGNUM_C && POLARSSL_ENTROPY_C && POLARSSL_SSL_TLS_C &&
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user