• svoj@mysql.com/june.mysql.com's avatar
    BUG#34788 - malformed federated connection url is not handled · 2b552aae
    svoj@mysql.com/june.mysql.com authored
                correctly - crashes server !
    
    Creating federated table with connect string containing empty
    (zero-length) host name and port is evaluated as 0 (port is
    incorrect, omitted or 0) crashes server.
    
    This happens because federated calls strcmp() with NULL pointer.
    
    Fixed by avoiding strcmp() call if hostname is set to NULL.
    2b552aae
ha_federated.cc 86.9 KB