[PATCH 032/160] net/tls: Fix to avoid gettig invalid tls record