Fixes a bug introduced in #481. When a login timeout occurs, userdata has not been initialized so it is a null pointer. Updating the timeout error handling to detect this so no segmentation fault occurs. Added a test to ensure login timeouts are working as expected.
Summary
Fixes a bug introduced in #481. When a login timeout occurs,
userdata
has not been initialized so it is a null pointer. Updating the timeout error handling to detect this so no segmentation fault occurs. Added a test to ensure login timeouts are working as expected.