diff --git a/programs/pkey/dh_genprime.c b/programs/pkey/dh_genprime.c index aefd6d608..2ccc63b6e 100644 --- a/programs/pkey/dh_genprime.c +++ b/programs/pkey/dh_genprime.c @@ -118,7 +118,7 @@ int main( int argc, char **argv ) { usage: mbedtls_printf( USAGE ); - mbedtls_exit( exit_code ); + goto exit; } for( i = 1; i < argc; i++ )