From 785958577e2b2d34aeb0ab3bd979df96d0523b9d Mon Sep 17 00:00:00 2001 From: gabor-mezei-arm Date: Tue, 28 Apr 2020 10:40:30 +0200 Subject: [PATCH] Use goto exit instead of direct return Signed-off-by: gabor-mezei-arm --- programs/ssl/ssl_client2.c | 4 ++-- programs/ssl/ssl_server2.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/ssl/ssl_client2.c b/programs/ssl/ssl_client2.c index d62d24ecb..d624b196c 100644 --- a/programs/ssl/ssl_client2.c +++ b/programs/ssl/ssl_client2.c @@ -1692,7 +1692,7 @@ int main( int argc, char *argv[] ) { opt.query_config_mode = 1; query_config_ret = query_config( q ); - mbedtls_exit( ret ); + goto exit; } 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", ret ); - return( ret ); + goto exit; } } #endif /* MBEDTLS_SSL_DTLS_CONNECTION_ID */ diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index 3bc1712de..1ccdeaeca 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -2392,7 +2392,7 @@ int main( int argc, char *argv[] ) { opt.query_config_mode = 1; query_config_ret = query_config( q ); - mbedtls_exit( ret ); + goto exit; } else if( strcmp( p, "serialize") == 0 ) {