Fix AUTH state transition
Merge pull request #49 from leonyu/fix_tls_auth

Fix AUTH state transition