mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-03 20:22:59 -05:00 
			
		
		
		
	Use goto exit instead of direct return
Signed-off-by: gabor-mezei-arm <gabor.mezei@arm.com>
This commit is contained in:
		
							parent
							
								
									a9eecf1b19
								
							
						
					
					
						commit
						785958577e
					
				@ -1692,7 +1692,7 @@ int main( int argc, char *argv[] )
 | 
				
			|||||||
        {
 | 
					        {
 | 
				
			||||||
            opt.query_config_mode = 1;
 | 
					            opt.query_config_mode = 1;
 | 
				
			||||||
            query_config_ret = query_config( q );
 | 
					            query_config_ret = query_config( q );
 | 
				
			||||||
            mbedtls_exit( ret );
 | 
					            goto exit;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        else if( strcmp( p, "serialize") == 0 )
 | 
					        else if( strcmp( p, "serialize") == 0 )
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
@ -2691,7 +2691,7 @@ int main( int argc, char *argv[] )
 | 
				
			|||||||
        {
 | 
					        {
 | 
				
			||||||
            mbedtls_printf( " failed\n  ! mbedtls_ssl_set_cid returned %d\n\n",
 | 
					            mbedtls_printf( " failed\n  ! mbedtls_ssl_set_cid returned %d\n\n",
 | 
				
			||||||
                            ret );
 | 
					                            ret );
 | 
				
			||||||
            return( ret );
 | 
					            goto exit;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
#endif /* MBEDTLS_SSL_DTLS_CONNECTION_ID */
 | 
					#endif /* MBEDTLS_SSL_DTLS_CONNECTION_ID */
 | 
				
			||||||
 | 
				
			|||||||
@ -2392,7 +2392,7 @@ int main( int argc, char *argv[] )
 | 
				
			|||||||
        {
 | 
					        {
 | 
				
			||||||
            opt.query_config_mode = 1;
 | 
					            opt.query_config_mode = 1;
 | 
				
			||||||
            query_config_ret = query_config( q );
 | 
					            query_config_ret = query_config( q );
 | 
				
			||||||
            mbedtls_exit( ret );
 | 
					            goto exit;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        else if( strcmp( p, "serialize") == 0 )
 | 
					        else if( strcmp( p, "serialize") == 0 )
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user