diff --git a/library/ssl_tls.c b/library/ssl_tls.c index 5d98caa2a..63244a1eb 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -2091,7 +2091,7 @@ int mbedtls_ssl_write_certificate( mbedtls_ssl_context *ssl ) #if defined(MBEDTLS_SSL_DTLS_SRTP) /* check if we have a chosen srtp protection profile */ if( ssl->dtls_srtp_info.chosen_dtls_srtp_profile != MBEDTLS_SRTP_UNSET_PROFILE ) - { + { return( MBEDTLS_ERR_SSL_BAD_HS_CERTIFICATE ); } else diff --git a/programs/ssl/ssl_client2.c b/programs/ssl/ssl_client2.c index 448f1572a..6a377bd1c 100644 --- a/programs/ssl/ssl_client2.c +++ b/programs/ssl/ssl_client2.c @@ -1800,7 +1800,7 @@ int main( int argc, char *argv[] ) opt.skip_close_notify = atoi( q ); if( opt.skip_close_notify < 0 || opt.skip_close_notify > 1 ) goto usage; - } + } else if( strcmp( p, "use_srtp" ) == 0 ) { opt.use_srtp = atoi ( q );