cadets / freebsd-old

FreeBSD src tree http://www.FreeBSD.org/
Other
12 stars 7 forks source link

Assert triggers when incorrect value of user_password specified #112

Closed gcjenkinson closed 5 years ago

gcjenkinson commented 5 years ago

When the user_password configuration is incorrect in is not possible to construct the TlsTransport instance and the decrypt of the private key fails. When a transport fails to be created the stjatemachine down() event is triggered resulting in a transition form connecting() to down(). This in turn attempts to delete a transport instance which was never successfully created.

gcjenkinson commented 5 years ago

More the self triggered down() even inside the condition checking whether the Transport instance was successfully created. Added a error() event in the case that a Transport wasn't successfully created, this results in a transition into the Final state and deletion of the Producer instance.