From 275874bc47a50771e7f92a4f5da28fcb3b4fbb1c Mon Sep 17 00:00:00 2001 From: Johan Pascal Date: Tue, 27 Oct 2020 10:43:53 +0100 Subject: [PATCH] Fix previous commit Signed-off-by: Johan Pascal --- library/ssl_cli.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/library/ssl_cli.c b/library/ssl_cli.c index 56a71c696..a3e027e1d 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c @@ -2519,11 +2519,8 @@ static int ssl_parse_server_hello( mbedtls_ssl_context *ssl ) case MBEDTLS_TLS_EXT_ALPN: MBEDTLS_SSL_DEBUG_MSG( 3, ( "found alpn extension" ) ); - if ( ssl->conf->transport == MBEDTLS_SSL_TRANSPORT_DATAGRAM ) - { - if( ( ret = ssl_parse_alpn_ext( ssl, ext + 4, ext_size ) ) != 0 ) - return( ret ); - } + if( ( ret = ssl_parse_alpn_ext( ssl, ext + 4, ext_size ) ) != 0 ) + return( ret ); break; #endif /* MBEDTLS_SSL_ALPN */