Fix exit codes in cert_app

This commit is contained in:
Manuel Pégourié-Gonnard 2014-11-10 16:40:16 +01:00
parent e959979621
commit 49aa99e653

View file

@ -188,6 +188,7 @@ int main( int argc, char *argv[] )
{
usage:
printf( USAGE );
ret = 2;
goto exit;
}
@ -500,6 +501,9 @@ exit:
fflush( stdout ); getchar();
#endif
if( ret < 0 )
ret = 1;
return( ret );
}
#endif /* POLARSSL_BIGNUM_C && POLARSSL_ENTROPY_C && POLARSSL_SSL_TLS_C &&