mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Avoid re-assigning zero to ret variable.
				
					
				
			Resolve #3182. Signed-off-by: irwir <irwir@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									5cac337228
								
							
						
					
					
						commit
						d3085ab2b8
					
				@ -2747,9 +2747,7 @@ int mbedtls_ssl_parse_certificate( mbedtls_ssl_context *ssl )
 | 
				
			|||||||
    {
 | 
					    {
 | 
				
			||||||
        ssl->session_negotiate->verify_result = MBEDTLS_X509_BADCERT_MISSING;
 | 
					        ssl->session_negotiate->verify_result = MBEDTLS_X509_BADCERT_MISSING;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if( authmode == MBEDTLS_SSL_VERIFY_OPTIONAL )
 | 
					        if( authmode != MBEDTLS_SSL_VERIFY_OPTIONAL )
 | 
				
			||||||
            ret = 0;
 | 
					 | 
				
			||||||
        else
 | 
					 | 
				
			||||||
            ret = MBEDTLS_ERR_SSL_NO_CLIENT_CERTIFICATE;
 | 
					            ret = MBEDTLS_ERR_SSL_NO_CLIENT_CERTIFICATE;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        goto exit;
 | 
					        goto exit;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user