Fix bug in TLS authentication ("Daniel P. Berrange")