[PATCH 5.4 027/142] net/tls: fix encryption error checking