[PATCH 5.4 009/152] net/tls: Fix to avoid gettig invalid tls record