Uploaded image for project: 'Percona Server for MySQL'
  1. Percona Server for MySQL
  2. PS-1779

LP #1660339: Bogus client SSL error messages produced using SSL_get_error not ERR_get_error error code

Details

    • Bug
    • Status: Done
    • High
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      **Reported in Launchpad by Laurynas Biveinis last update 14-06-2017 08:19:58

      On 5.6 trunk:

      main.ssl-big w4 [ fail ]
      Test ended at 2017-01-27 07:57:46

      CURRENT_TEST: main.ssl-big
      mysqltest: At line 54: query 'connect ssl_con2,localhost,root,,,,,SSL' failed: 2026: SSL connection error: error:00000001:lib(0):func(0):reason(1)

      The "error:00000001:lib(0):func(0):reason(1)" part comes from ERR_error_string API, which requires ERR_get_error-returned arg, but is passed SSL_get_error-returned arg instead. The return codes of these two functions have nothing in common, and the resulting error message is bogus.

      This is likely the reason for https://bugs.mysql.com/bug.php?id=75311 too.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lpjirasync lpjirasync (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Smart Checklist