check the ticket version unconditional

Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
diff --git a/library/ssl_tls13_server.c b/library/ssl_tls13_server.c
index 2288a1a..6155946 100644
--- a/library/ssl_tls13_server.c
+++ b/library/ssl_tls13_server.c
@@ -159,12 +159,10 @@
     /* We delete the temporary buffer */
     mbedtls_free(ticket_buffer);
 
-#if defined(MBEDTLS_SSL_PROTO_TLS1_2)
     if (ret == 0 && session->tls_version != MBEDTLS_SSL_VERSION_TLS1_3) {
         MBEDTLS_SSL_DEBUG_MSG(3, ("ticket version invalid."));
         ret = MBEDTLS_ERR_SSL_BAD_PROTOCOL_VERSION;
     }
-#endif
 
     if (ret != 0) {
         goto exit;