Bug #46410 SSL code does not work properly with the host-name cache
Submitted: 27 Jul 2009 15:48
Reporter: Alexander Nozdrin Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: General Severity:S3 (Non-critical)
Version:5.4 OS:Any
Assigned to: Assigned Account CPU Architecture:Any

[27 Jul 2009 15:48] Alexander Nozdrin
Description:
The problem is that when check_connection() handles SSL connections,
it does not initialize vio->remote properly. Thus, when inc_host_errors()
is called, it can not identify the client.

How to repeat:
Add DBUG_ASSERT(ip->ss_family == AF_INET || ip->ss_family == AF_INET6)
in the beginning of inc_host_errors() and run openssl_1.test. It will
crash on the assert.

Suggested fix:
Make sure vio->remote is initialized properly before use.