[sr-dev] git:andrei/tcp_tls_changes: tls: fix initial state error handling